nodejitsu/haibu — Issue #90: `prestart` hook
Author: mmalecki
Created: 2012-01-07 22:46:43+00:00
State: open
Labels: feature-request, low-priority

With such a `package.json`

```json
{
"name": "npm-test",
"version": "0.0.0",
"scripts": {
"prestart": "echo prestart",
"start": "echo start",
"poststart": "echo poststart"
}
}
```
when you `npm run start`, you get

```
> npm-test@0.0.0 prestart /Users/maciej/npm-test
> echo prestart

prestart

> npm-test@0.0.0 start /Users/maciej/npm-test
> echo start

start

> npm-test@0.0.0 poststart /Users/maciej/npm-test
> echo poststart

poststart
```

It'd be cool to reproduce `prestart` functionality in haibu (it'd be really useful for, say, precompiling JS or generating static assets).