now-static-build-node

0.0.1 • Public • Published

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"
      }
    }
  ]
}

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i now-static-build-node

      Weekly Downloads

      1

      Version

      0.0.1

      License

      MIT

      Unpacked Size

      2.99 kB

      Total Files

      3

      Last publish

      Collaborators

      • codeincontext