Run tasks from package.json.
npm install -g npm-tasks-runner
Usage: npm-tasks-runner [environment]
In your package.json, declared by environment the list of tasks to execute:
{
"name": "project",
"version": "1.0.0",
"description": "",
"author": "",
"license": "ISC",
"tasks": {
"production": [
"browserify index.js -o bundle.js",
{
"name": "uglify-js",
"src": "bundle.js",
"dest": "-o bundle.min.js",
"options": "-c"
}
]
}
}
Then run in your terminal:
npm-tasks-runner production
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Added some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
MIT