sgnbuild
"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)
NOTICE: sgnbuild is built for the latestA web application build system
Motto: it works, nothing more
Building instructions
-
Install sgnbuild from npm
npm install --global sgnbuild
-
Build
sgnbuild
-
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 findes6/index.js
-
sgnbuild.global: string
: Ifsgnbuild.type
is"library"
, this sets the global to put all exported fields in if the environment is not CommonJS or AMD. -
sgnbuild.uglify: boolean
: Ifsgnbuild.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"
}