Add support for hooks.
Currently supported hooks are predeploy (executed before updating the tarball) and postdeploy (executed after application is started).
[api] Add `jitsu.package.runScript`
It executes scripts from `package.json` `scripts` entry.
[api] Implement `predeploy` hook
[dist refactor] Use `spawn-command` module
[api] Add support for `postdeploy` hook
Any security concerns though?
What kind of security concerns are you talking about? Hooks are running on user's machine, it's nothing one couldn't do anyway.
None in particular was really just asking :)
OK, thanks for review Nuno. @AvianFlu @jesusabdullah wanna take a look at it or should I merge?
I'll take a look, but a'priori this looks awesome.
LGTM'd by @jesusabdullah and @pksunkara on IRC, merging.
Merge pull request #254 from nodejitsu/hooks