Confused about how to run something like this with ansible ( the --save-dev flag part). Do I manually create a package.json file in my project root directory before using ansible to install the npm package?
npm install gulp-ruby-sass --save-dev
Confused about how to run something like this with ansible ( the --save-dev flag part). Do I manually create a package.json file in my project root directory before using ansible to install the npm package?
npm install gulp-ruby-sass --save-dev
We do build our package.json on developer's machine. And just run npm
install on the production machine. We're even considering offloading
this task to CI server and just copy the final build files to the
production machine as we've had inconsistencies in npm install at
times and doing it multiple times doesn't make sense in most cases.