JsonHunt / save-commands

Assign parametrized shell commands to file globs to be automatically run whenever the file is saved
MIT License
20 stars 11 forks source link

Slight issue with append ie '>' #12

Closed enricribas closed 8 years ago

enricribas commented 9 years ago

In Rails, I'd like to do the following "config/routes.rb : rake routes > routes.txt"

so that it creates a routes.txt file every time I change the routes file. (saves time referencing it)

Unfortunately I get this error Don't know how to build task '>'

Thanks.

cperryk commented 9 years ago

Think this is related to this issue I just posted: https://github.com/JsonHunt/save-commands/issues/14

Seems like save-commands doesn't recognize carrots or pipes.

bungle commented 9 years ago

Also && doesn't work, e.g.:

commands: [
      "/usr/local/etc/nginx.conf: /usr/local/bin/nginx -t && /usr/local/bin/nginx -s reload"
]
JsonHunt commented 8 years ago

replaced win-spawn with cross-spawn-async. That should fix the problem