`prestart` hook #90

Open
mmalecki opened this Issue Jan 7, 2012 · 0 comments

Projects

None yet

1 participant

@mmalecki
Contributor
mmalecki commented Jan 7, 2012

With such a package.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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment