Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

`prestart` hook #90

Open
mmalecki opened this Issue · 0 comments

1 participant

@mmalecki

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
Something went wrong with that request. Please try again.