generator-ng2 v2.6.1
Please use @angular/cli instead of that
generator-ng2
Yeoman generator for getting started with Angular 2 the easiest way.
Yeoman generator
Getting Started
What is Yeoman?
Trick question. It's not a thing. It's this guy:
Basically, he wears a top hat, lives in your computer, and waits for you to tell him what kind of application you wish to create.
Not every new computer comes with a Yeoman pre-installed. He lives in the npm package repository. You only have to ask for him once, then he packs up and moves into your hard drive. Make sure you clean up, he likes new and shiny things.
npm install -g yo
Yeoman Generators
Yeoman travels light. He didn't pack any generators when he moved in. You can think of a generator like a plug-in. You get to choose what type of application you wish to create, such as a Backbone application or even a Chrome extension.
To install generator-ng2 from npm, run:
npm install -g generator-ng2
###Create project
After that, create project folder:
mkdir app_name && cd app_name
And run this generator:
yo ng2
After a while, you can launch these commands.
All commands are npm tasks in package.json:
- npm run test -> execute tests with Karma + Coverage + PhantomJS
- npm run live -> show app with livereload thank to live-server
- npm run pro -> prepare app for production in dist folder
- npm run clean -> delete build folder
- npm run compile -> compile TypeScript to JavaScript
- npm run compile-w -> compile TypeScript to JavaScript when files change
- npm run lint -> show syntax errors
Technologies
JSPM + SystemJS + Karma + TypeScript + Typings + Angular 2.0.0-rc.1 + Gulp
License
Released under the MIT license: opensource.org/licenses/MIT
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago