{"id":27349,"library":"rollup-boilerplate","title":"Rollup Boilerplate","description":"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.","status":"maintenance","version":"1.1.5","language":"javascript","source_language":"en","source_url":"https://github.com/scssyworks/rollup-boilerplate","tags":["javascript","rollup","boilerplate","rollup-boilerplate","starter","project-builder","app-builder","app","plugin"],"install":[{"cmd":"npm install rollup-boilerplate","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-boilerplate","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-boilerplate","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"CLI command parsing","package":"commander","optional":false},{"reason":"Colored console output","package":"chalk","optional":false},{"reason":"Interactive prompts","package":"inquirer","optional":false}],"imports":[{"note":"This is a CLI command, not a programmatic import.","wrong":"Using `npm run create-library` without global install (will fail if not in package.json scripts).","symbol":"create-library","correct":"Run `create-library` from command line after global install."}],"quickstart":{"code":"# Install globally\nnpm install -g rollup-boilerplate\n\n# Create a new library\nmkdir myLibrary && cd myLibrary\ncreate-library\n# Follow prompts: name, version, description, author, etc.\n# Then run:\nnpm install\nnpm run build # builds UMD and ESM bundles under dist/\nnpm test # runs Jest tests","lang":"javascript","description":"Install the CLI globally, create a folder, run 'create-library', answer prompts, then install dependencies and build."},"warnings":[{"fix":"Consider alternatives like create-rollup-app or manually set up Rollup.","message":"Package has not been updated since 2021; may not work with latest Node.js versions (e.g., Node>=16).","severity":"deprecated","affected_versions":">=16.0.0"},{"fix":"Install with -g flag, or use npx rollup-boilerplate.","message":"Global install required for CLI command; local install may not expose 'create-library' in PATH.","severity":"gotcha","affected_versions":"all"},{"fix":"If using latest Node, upgrade Babel presets if needed.","message":"The generated project uses Babel v7; ensure your Node.js version is compatible.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'npm install -g rollup-boilerplate'.","cause":"Missing dependency when running the CLI without global install.","error":"Error: Cannot find module 'commander'"},{"fix":"Add 'transform-runtime' plugin to Babel config or install @babel/runtime.","cause":"Generated code uses async/await but @babel/runtime is not properly configured.","error":"ReferenceError: regeneratorRuntime is not defined"},{"fix":"Use the UMD bundle (dist/umd/) or upgrade to Node >=13.2.","cause":"Trying to run ESM output in an older Node.js version that does not support ES modules.","error":"SyntaxError: Unexpected token 'export'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}