The build system used by all Signum projects


Keywords
build
License
Unlicense
Install
npm install sgnbuild@0.13.0

Documentation

sgnbuild NPM Downloads per month Downloads total Build Status

NOTICE: sgnbuild is built for the latest "Current" version of Node. If it works on other versions, consider that undefined behavior. Do not use sgnbuild on Node versions older than Current. (including 4, the current LTS)

A web application build system

Motto: it works, nothing more

Building instructions

  1. Install sgnbuild from npm

    npm install --global sgnbuild
  2. Build

    sgnbuild
  3. Install

    npm install --global

Usage instructions

All configuration is done within an object called "sgnbuild" in your project's package.json.

  • sgnbuild.type: string:
    • "web": Build a web application with Rollup, Webpack, and Babel
    • "node": Build a Node application with Rollup, outputting CommonJS
    • "library": Build a library with Rollup, outputting UMD
  • sgnbuild.root: string: Directory in which to find es6/index.js
  • sgnbuild.global: string: If sgnbuild.type is "library", this sets the global to put all exported fields in if the environment is not CommonJS or AMD.
  • sgnbuild.uglify: boolean: If sgnbuild.type is "web", the bundle will be run through UglifyJS.

Take a look at sgnbuild's package.json to see an example which is enough for most circumstances:

"sgnbuild": {
  "type": "node"
}