Skip to content

Mango-information-systems/npm-scripts-watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm-scripts-watcher

npm version

Globbing file watcher to automatically run npm scripts from package.json when files change, with pretty colors.

Screenshot

Usage

First install it as a devDependency:

npm i -D npm-scripts-watcher

Add a top-level watch config to your package.json and a watch script to your scripts:

{
  "scripts": {
    "test": "mocha",
    "watch": "npm-scripts-watcher"
  },
  "watch": {
    "{src,test}/**/*.js": ["test"]
  }
}

Keys in the watch object should be globs and values should be an array of script names as specified in scripts.

Now you can start the file watcher using npm run watch.

About

Globbing file watcher to automatically run npm scripts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published