atom-watch

Run shell command on file save

esportsplus

34

1

0.1.0

MIT

GitHub

Atom Watch

Fork of mvila's very useful on-save utility.

Our latest projects store configuration within package.json files and all commands are now being managed through npm scripts.

To prevent any future laziness utilities like this are being stripped to bare minimum requirements.

In this package the configuration was removed and we are left with the following:

Install

apm install atom-watch

Usage

Create an atomWatch key within the package.json file of a directory you would like to watch.

Specify the files to watch with the command to execute once the file changes. For Example:

"atomWatch": [
    {
        "files": "**/*.js",
        "command": "npm run js:uglify"
    },
    {
        "files": "**/*.scss",
        "command": "npm run scss:compile"
    }
]

Configuration file

atomWatch must be an array of objects with the following properties: