Skip to content

jloads/rollup-lib-bundler

 
 

Repository files navigation

@comandeer/rollup-lib-bundler

Build Status Dependency Status devDependencies Status codecov npm (scoped)

Super opinionated library bundler using Rollup, Babel and terser.

How does it work?

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.

Installation

npm install @comandeer/rollup-lib-bundler --save-dev

Usage

Just make it a npm script:

"scripts": {
	"build": "rlb"
}

Configuration

No configuration. Consider it a feature.

License

See LICENSE file for details.

Packages

No packages published

Languages

  • JavaScript 100.0%