savey-wavey

Execute shell commands on save

darthtrevino

534

5

0.3.0

MIT

GitHub

This package consumes the following services:

Build Status Dependencies Code Climate Test Coverage Issue Count

savey-wavey

apm install savey-wavey

An atom plugin for triggering shell scripts on save events.

Usage

Create an .on-save.json file at the root of you project.

For example, if you want to babelify every .js file from src to lib:

{
  "commands": [
    {
      "watch": "src/**/*.js",
      "base": "src",
      "command": "./node_modules/.bin/babel ${path} --out-file libs/${dir}/${name}.js"
    }
  ],
  "config": <optional configuration options>
}

Interpolated Variables

Example: /Users/me/projects/domination/src/widgets/x.js

Configuration Options

{
  commands: [<your command definitions>],
  config: {
    showSuccess: true;
    autohideSuccess: true;
    autohideSuccessTimeout: 1200;
  }
}

Options