apm install savey-wavey
An atom plugin for triggering shell scripts on save events.
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>}
Example: /Users/me/projects/domination/src/widgets/x.js
/Users/me/projects/domination
)src/widgets/x.js
)/Users/me/projects/domination/src/widgets/x.js
).js
)x
)stuff
){commands: [<your command definitions>],config: {showSuccess: true;autohideSuccess: true;autohideSuccessTimeout: 1200;}}
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.