$ cnpm install @comandeer/rollup-lib-bundler
Super opinionated library bundler using Rollup, Babel and babel-minify.
It gets package.json
from the current working directory, parses it and get neeeded info:
name
, author
, version
and license
to create beautiful banner comment,main
to get path for saving ES5 bundle,module
or jsnext:main
for saving ES2015 bundle.Of course it treats src/index.js
as the only entry point for Rollup.
npm install @comandeer/rollup-lib-bundler --save-dev
Just make it a npm script:
"scripts": {
"build": "rlb"
}
No configuration. Consider it a feature.
See LICENSE file for details.
Copyright 2014 - 2017 © taobao.org |