npm.io
1.3.2 • Published 4 years ago

backed-builder

Licence
MIT
Version
1.3.2
Deps
5
Vulns
2
Weekly
0

backed-builder NPM version Build Status Dependency Status Coverage percentage

A command line interface for fast es6 development

Installation

$ npm install backed-builder

Usage

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