init-dev
v0.0.7
Published
A module to install dev modules on every new project
Downloads
1
Readme
init-dev
Automate the packages you want to install when you create a new Node project
Install
npm i -g init-dev
Usage
Create a .json file with a list of the modules you would like to have in any new project.
For eaxmple
[{
"module" : "standard",
"tasks" : {
"prestart" : "standard"
},
"extend" : {
"standard" : {
"ignore": ["dist/*"]
}
}
}, {
"module" : "husky",
"tasks": {
"precommit" : "standard",
"prepush" : "standard"
}
}]
You can either use a local file or a remote file, like the one I create on gist for myself
As a first step, run the configuration initDev --config
that will ask you the path to this .json file and read the modules you want and create a .dev.package.json
on your home folder.
Once you create a new project you can now run:
initDev --install
an all the packages you need to start developing will be installed.
#Extras
Run initDev --info
to check which modules are you installing