1.3.2 • Published 8 years ago
backed-builder v1.3.2
backed-builder 
 
 
 
A command line interface for fast es6 development
Installation
$ npm install backed-builderUsage
soon...API
Builder.build{bundles}
bundles
Type: array
Default: undefined
Options: src, dest, format, babel
An array of objects with each object containing a src & dest property
Minimal config
{
  "bundles": [{
    "src": "some/path/to/index",
    "dest": "some/path/to/index"
  }]
}Minimal config with multiple bundles
{
  "bundles": [{
    "src": "some/path/to/index",
    "dest": "some/path/to/index"
  }, {
    "src": "some/other/path/to/element",
    "dest": "some/other/path/to/element"
  }]
}Full config
{
  "name": "some-element",
  "bundles": [{
    "src": "some/path/to/index",
    "dest": "some/path/to/index",
    "moduleName": "someElement",
    "format": "iife"
  }, {
    "src": "some/other/path/to/element",
    "dest": "some/other/path/to/element",
    "moduleName": "someElement",
    "format": ["iife", "es"],
    "babel": {"babel-config"}
  }]
}