This project demonstrates how you can abstract your project configurations and its dependencies inside a package by exposing an npm cli.
- it decouples your code from configuration hell
- helps you maintain all configs at one place instead of duplicating in all your projects
- easy to change configurations and upgrade dependencies
$ npm istall --dev vscripts
Do not try the above command, this is not published.
"build": "vscripts build"
// default is src
"lint": "vscripts lint"
// provide a source folder(s)
"lint": "vscripts lint --src source"
- You can see this project in action in dynamic-redux-state
- The cli and relevant code is in
/bin - The
binconfig inpackage.jsonexposes the cli
https://blog.npmjs.org/post/118810260230/building-a-simple-command-line-tool-with-npm
- raise a ticket