Super opinionated library bundler using Rollup, Babel and terser.
It gets package.json from the current working directory, parses it and get neeeded info:
name,author,versionandlicenseto create beautiful banner comment,mainto get path for saving ES5 bundle,moduleorjsnext:mainfor saving ES2015 bundle.
Of course it treats src/index.js as the only entry point for Rollup.
npm install @comandeer/rollup-lib-bundler --save-devJust make it a npm script:
"scripts": {
"build": "rlb"
}No configuration. Consider it a feature.
See LICENSE file for details.