lib-bundler is a bundling tool for js lib implemented by es6.
$ npm install lib-bundler --save-dev
var Bundler = require('lib-bundler');
var bundler = new Bundler({
type: "commonjs" // all, commonjs, umd; default is 'all'.
project: "test",
moduleName: "test",
author: "author",
version: "1.0.0",
entry: "./src/index.js",
output: "./dist",
license: "MIT"
});
bundler.bundled()
{
"presets": [ "es2015-rollup" ]
}
$ node build.js
test.common.js
test.js
test.min.js
test.min.js.gz
test.min.js.map
If you any questions, use Issues.
Sina Weibo: @miaowingz
MIT Licence.