Auto watch and install dependencies when your teammate add changes to the package.json
npm install swift-auto-instaler --save-dev
It can be used with node, react, angular e.t.c to check and automaitcally install new packages added/required for your application to work. Say bye to running npm i everytime.
"start": "./node_modules/swift-auto-instaler/src/check-cli.js && node server.js" // change to your start script
"test": "/node_modules/swift-auto-instaler/src/check-cli.js && test server.js" // change this to your test script
{
"husky": {
"hooks": {
"post-checkout": "/node_modules/swift-auto-instaler/src/check-cli.js",
"...": "..."
}
}
}
--yarn
Use yarn instead of npm
⭐ this repo