cli-juggle
v0.1.4
Published
watch files and execute command on change
Downloads
1
Readme
juggle
juggle is a command line utility that sits and watches files and takes action on changes.
describe what you want watched and what you want to do in the manifest.json
Install
npm install -g juggle
Example manifest.json
{
"watch":[
{
"who":{
"path":"./less",
"regex":"\\.less$"
},
"action":{
"cmds":[
{
"name":"LESS => CSS",
"cmd": "lessc",
"args":[
"{{fullfile}}",
"css/{{filename}}.css"
]
}
]
}
},
...
]
}
Usage
aclark >> juggle manifest.json
Replacement Variables
{{fullfile}} # full file name 'less/style.less'
{{fileext}} # file extension '.less'
{{path}} # path of file 'less'
{{filename}} # name of file 'style'
Limitations
- As of 0.1.0 this will not work on
Windows
due to limitations in the syncExec package. - On
OSX
you will need Xcode installed.
Todo
- tie in growl/notification support
- more tests
- better example