npm-script-flatten
npm-script-flatten
is a small tool for flattening npm script.
usage
npm install -g npm-script-flattennpm-script-flatten deploy # your script to be flattened
example
For example, npm script deploy
defined in package.json
"scripts":
When we run npm-script-flatten deploy
, you will get the commands actually run.
cp index.js index.io.js --testcp index.js ios.android.jscp index.*.js /tmp