npm-tasks-runner

1.0.2 • Public • Published

npm-tasks-runner

Run tasks from package.json.

release

Install

npm install -g npm-tasks-runner

Usage

Usage: npm-tasks-runner [environment]

Example

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

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Licence

MIT

Package Sidebar

Install

npm i npm-tasks-runner

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • oliv75