npm

component-regenerator

0.1.1 • Public • Published

component-regenerator

Build Status Coverage Status NPM version Dependency Status

facebook/regenerator plugin for component-builder

Installing

$ npm install -g component-regenerator

Usage

To convert your scripts which was writen by generator, run the following code.

var Builder = require('component-builder');
var plugin = require('component-regenerator');
var fs = require('fs');

var builder = new Builder(__dirname);

builder.use(plugin);

builder.build(function (err, build) {
  if (err) {
    throw err;
  }
  fs.writeFileSync('build/build.js', build.require + build.js);
});

Or from the command line.

$ component build --use component-regenerator

Testing

$ npm install
$ make test

License

MIT license.

See the LICENSE.

Bitdeli Badge

Readme

Keywords

none

Package Sidebar

Install

npm i component-regenerator

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • kazupon