Registry / devops / rollup-boilerplate

rollup-boilerplate

JSON →
library1.1.5jsnpmunverified

Rollup boilerplate is a project generator for UMD+ESM JavaScript libraries. Version 1.1.5 provides a CLI tool to scaffold a modern library project with Rollup, Babel, and testing setup. It supports both CommonJS (UMD) and ES module (MJS) outputs, making it suitable for creating universal libraries. Release cadence is low; last update was in 2021. Differentiators: automatic dependency installation, customized project structure, and built-in configuration for Rollup and Babel in a single command.

npm install rollup-boilerplate
INSTALL
IMPORT
SIG · ROLLUP-BOILERPLATE
R
rollup-boilerplate
devopsjavascriptv1.1.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

create-library
✓ Run `create-library` from command line after global install.
✗ Using `npm run create-library` without global install (will fail if not in package.json scripts).
This is a CLI command, not a programmatic import.

Install the CLI globally, create a folder, run 'create-library', answer prompts, then install dependencies and build.

# Install globally npm install -g rollup-boilerplate # Create a new library mkdir myLibrary && cd myLibrary create-library # Follow prompts: name, version, description, author, etc. # Then run: npm install npm run build # builds UMD and ESM bundles under dist/ npm test # runs Jest tests
rollup-boilerplate --version
Debug
Known issues
deprecatedPackage has not been updated since 2021; may not work with latest Node.js versions (e.g., Node>=16).
fix
Consider alternatives like create-rollup-app or manually set up Rollup.
affects: >=16.0.0
gotchaGlobal install required for CLI command; local install may not expose 'create-library' in PATH.
fix
Install with -g flag, or use npx rollup-boilerplate.
affects: all
gotchaThe generated project uses Babel v7; ensure your Node.js version is compatible.
fix
If using latest Node, upgrade Babel presets if needed.
affects: all
Errors
Common errors & fixes
Error: Cannot find module 'commander'
Missing dependency when running the CLI without global install.
fix
Run 'npm install -g rollup-boilerplate'.
ReferenceError: regeneratorRuntime is not defined
Generated code uses async/await but @babel/runtime is not properly configured.
fix
Add 'transform-runtime' plugin to Babel config or install @babel/runtime.
SyntaxError: Unexpected token 'export'
Trying to run ESM output in an older Node.js version that does not support ES modules.
fix
Use the UMD bundle (dist/umd/) or upgrade to Node >=13.2.
Upgrade
Version history
1.1.5latest on npm
Audit
Dependencies
commanderrequiredCLI command parsing
chalkrequiredColored console output
inquirerrequiredInteractive prompts
Agent activity
2 hits · last 30 days
node
2
Resources
rollup-boilerplate — npm install rollup-boilerplate · libregistry