1.0.2 • Published 11 years ago
npm-stare v1.0.2
npm-stare
Keep an eye on your files and run npm script when they change. Configurable in your package.json.
Installation
npm
$ npm install --save-dev npm-starepackage.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 stareThe utility will now run, watching and running scripts, until you terminate it.