angular2-rollup

raw JSON →
5.0.0-beta.6.1 verified Mon Apr 27 auth: no javascript

Angular 2 starter using AOT compilation with ngc, Rollup bundling, and Closure Compiler optimization. Version 5.0.0-beta.6.1. Provides CLI commands (ngr) for JIT/dev/prod builds, testing with Jasmine/Karma, e2e with Protractor, SASS/PostCSS stylesheets, and Express server with LiveReload. Build scripts use ShellJS for cross-platform support. Differentiates by focusing on production optimization with Rollup+Closure Compiler and providing a boilerplate for component libraries.

error ngr: command not found
cause angular2-rollup not installed globally or not in PATH.
fix
Run: npm install -g angular2-rollup
error Cannot find module 'typescript'
cause Missing TypeScript dependency; scaffold may not install it.
fix
Run: npm install typescript --save-dev
error Error: Cannot find module '@angular/compiler-cli'
cause Required Angular compiler packages are missing.
fix
Run: npm install @angular/compiler-cli @angular/compiler --save-dev
deprecated Angular 2 is long deprecated; projects should use Angular 17+.
fix Use a modern Angular CLI project (e.g., @angular/cli) instead.
gotcha CLI commands require global installation; running 'ngr' without global install fails.
fix Install globally: npm install -g angular2-rollup
gotcha Node version must be v6.5.x+; newer Node versions may cause incompatibilities with dependencies.
fix Use Node v6.5.x (or use a version manager like nvm).
gotcha Scaffold command creates files in current directory; running in wrong directory can overwrite files.
fix Create a new directory first: mkdir my-app && cd my-app && ngr scaffold
deprecated Protractor and Karma are outdated; modern Angular uses Cypress or Playwright for e2e and Jest for unit tests.
fix Consider migrating to modern testing tools.
npm install angular2-rollup
yarn add angular2-rollup
pnpm add angular2-rollup

Shows global install, scaffolding a new project, and running the development build with server and LiveReload.

npm install -g angular2-rollup webdriver-manager codelyzer rimraf
mkdir my-new-app && cd my-new-app
ngr scaffold && npm install
ngr build dev --serve --watch