rollup-generator
raw JSON → 1.0.18 verified Mon Apr 27 auth: no javascript maintenance
A CLI tool to quickly scaffold a Rollup project with minimal configuration. It generates a basic Rollup setup including entry file, output configuration, and package.json. The tool supports custom input/output file names, output formats (e.g., iife, umd), global module names, and source map options. Ideal for developers who want to avoid repetitive setup when starting new Rollup-based libraries or bundles. Version 1.0.18 is the latest stable release. The package has low activity and may not be actively maintained. It is a niche alternative to using Rollup's own init or templates like create-rollup-app.
Common errors
error bash: rollup-go: command not found ↓
cause Global install not working or not in PATH.
fix
Run
npm i -g rollup-generator or use npx rollup-go. error Error: Cannot find module 'rollup-generator' ↓
cause Attempting to require the package as a library in Node.js code.
fix
Use the CLI via command line:
rollup-go or npx rollup-generator. Warnings
deprecated Package appears unmaintained; last release was in 2019 or earlier. ↓
fix Consider using Rollup's official create-rollup-app or manually setting up Rollup via npm init.
gotcha CLI generates a project with a fixed Rollup version that may be outdated. ↓
fix After generation, update Rollup in package.json to the latest version.
Install
npm install rollup-generator yarn add rollup-generator pnpm add rollup-generator Imports
- cli wrong
require('rollup-generator')correctnpx rollup-generator
Quickstart
# Install globally
npm i -g rollup-generator
# Generate a new Rollup project
rollup-go
# Or specify project directory
rollup-go init my-project
# Enter project
cd my-project
# Install dependencies
npm install
# Build and watch
npm start