Skip to content

Instantly share code, notes, and snippets.

@denysdovhan
Created June 2, 2016 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save denysdovhan/b6c6dd27980699ec46cb891b06b4b7e4 to your computer and use it in GitHub Desktop.
Save denysdovhan/b6c6dd27980699ec46cb891b06b4b7e4 to your computer and use it in GitHub Desktop.
better-npm-run
{
"devDependencies": {
"better-npm-run": "~0.0.1"
},
"scripts": {
"build:dist": "better-npm-run build:dist",
"test": "better-npm-run test"
},
"betterScripts": {
"build:dist": {
"command": "webpack --config webpack.config.dev.js --progress --colors",
"env": {
"NODE_ENV": "development"
}
},
"build:prod": {
"command": "webpack --config webpack.config.prod.js --progress --colors",
"env": {
"NODE_ENV": "production"
}
},
"test": {
"command": "karma start",
"env": {
"NODE_ENV": "test"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment