Skip to content

olivmonnier/npm-tasks-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Run tasks from package.json

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published