{"id":20922,"library":"angular2-rollup","title":"angular2-rollup","description":"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.","status":"active","version":"5.0.0-beta.6.1","language":"javascript","source_language":"en","source_url":"https://github.com/steveblue/angular2-rollup","tags":["javascript"],"install":[{"cmd":"npm install angular2-rollup","lang":"bash","label":"npm"},{"cmd":"yarn add angular2-rollup","lang":"bash","label":"yarn"},{"cmd":"pnpm add angular2-rollup","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The cli is installed globally; local install is not typical.","wrong":"npm install angular2-rollup --save-dev","symbol":"ngr","correct":"npm install -g angular2-rollup"},{"note":"CLI command is 'ngr scaffold' (no leading dashes), but older docs show --scaffold may also work.","wrong":"ngr --scaffold","symbol":"scaffold","correct":"ngr scaffold"},{"note":"Commands are like 'ngr build jit', 'ngr build dev', 'ngr build prod' – not flags.","wrong":"ngr build --prod","symbol":"build","correct":"ngr build prod"}],"quickstart":{"code":"npm install -g angular2-rollup webdriver-manager codelyzer rimraf\nmkdir my-new-app && cd my-new-app\nngr scaffold && npm install\nngr build dev --serve --watch","lang":"bash","description":"Shows global install, scaffolding a new project, and running the development build with server and LiveReload."},"warnings":[{"fix":"Use a modern Angular CLI project (e.g., @angular/cli) instead.","message":"Angular 2 is long deprecated; projects should use Angular 17+.","severity":"deprecated","affected_versions":">=5.0.0"},{"fix":"Install globally: npm install -g angular2-rollup","message":"CLI commands require global installation; running 'ngr' without global install fails.","severity":"gotcha","affected_versions":">=5.0.0"},{"fix":"Use Node v6.5.x (or use a version manager like nvm).","message":"Node version must be v6.5.x+; newer Node versions may cause incompatibilities with dependencies.","severity":"gotcha","affected_versions":">=5.0.0"},{"fix":"Create a new directory first: mkdir my-app && cd my-app && ngr scaffold","message":"Scaffold command creates files in current directory; running in wrong directory can overwrite files.","severity":"gotcha","affected_versions":">=5.0.0"},{"fix":"Consider migrating to modern testing tools.","message":"Protractor and Karma are outdated; modern Angular uses Cypress or Playwright for e2e and Jest for unit tests.","severity":"deprecated","affected_versions":">=5.0.0"}],"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 angular2-rollup","cause":"angular2-rollup not installed globally or not in PATH.","error":"ngr: command not found"},{"fix":"Run: npm install typescript --save-dev","cause":"Missing TypeScript dependency; scaffold may not install it.","error":"Cannot find module 'typescript'"},{"fix":"Run: npm install @angular/compiler-cli @angular/compiler --save-dev","cause":"Required Angular compiler packages are missing.","error":"Error: Cannot find module '@angular/compiler-cli'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}