Skip to content

Stare at (watch) files and directories for changes and then run npm scripts in retaliation.

License

Notifications You must be signed in to change notification settings

dannyfritz/npm-stare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm-stare

Gitter

Keep an eye on your files and run npm script when they change. Configurable in your package.json.

NPM

Installation

npm

$ npm install --save-dev npm-stare

package.json

Put a stare in scripts that runs npm-stare.

Then put all your watch directives in stare.

{
  "name": "example",
  "version": "0.0.0",
  "description": "An example package.json.",
  "scripts": {
    "stare": "npm-stare",
    "build": "browserify index.js > app.js",
    "test": "tape tests"
  },
  "stare": {
    "build": {
      "path": [
        "lib/",
        "bin/"
      ]
    },
    "test": {
      "path": "lib/"
    }
  },
  "devDependencies": {
    "tape": "*",
    "browseify": "*"
  }
}

Running

$ npm run stare

The utility will now run, watching and running scripts, until you terminate it.

About

Stare at (watch) files and directories for changes and then run npm scripts in retaliation.

Resources

License

Stars

Watchers

Forks

Packages