0.0.1 • Published 6 years ago

now-static-build-node v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

now-static-build-node

This package provides a builder for Zeit's Now 2.0 that compiles static files with a custom npm script name (not now-build)

now-static-build always runs the now-build script, but we wanted to use the same package.json file to deploy a storybook

Based on https://github.com/zeit/now-builders/tree/master/packages/now-static-build

Usage

Your now.json "builds" section should look something like this:

Note: don't forget to add "version": 2 in your now.json file to use Now 2.0 explicitly.

{
  "builds": [
    {
      "src": "package.json",
      "use": "now-static-build-node",
      "config": {
        "packageJsonScript": "now-build-storybook"
      }
    }
  ]
}