Skip to content

chyingp/npm-script-flatten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm-script-flatten

npm-script-flatten is a small tool for flattening npm script.

usage

npm install -g npm-script-flatten
npm-script-flatten deploy # your script to be flattened

example

For example, npm script deploy defined in package.json

"scripts": {
	"deploy": "npm run build-ios --test && npm run build-android && npm run deploy-remote",
	"build": "npm run build-ios && npm run build-android",
	"build-ios": "cp index.js index.io.js",
	"build-android": "cp index.js ios.android.js",
	"deploy-remote": "cp index.*.js /tmp"
}

When we run npm-script-flatten deploy, you will get the commands actually run.

cp index.js index.io.js --test
cp index.js ios.android.js
cp index.*.js /tmp

About

flatten npm script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published