问题
There is the official Angular generator, and many users provided ones for Angular 1. But I haven't found a generator for Angular 2.
Does such a yeoman generator exist already?
回答1:
The Official tool for scaffolding Angular2 project is Angular-Cli https://github.com/angular/angular-cli
There are few generators for Angular2
Please try them and post some feedback or issues in the github
https://www.npmjs.com/package/generator-angular2 (https://github.com/swirlycheetah/generator-angular2)
https://www.npmjs.com/package/generator-gulp-angular2 (https://github.com/x6doooo/generator-gulp-angular2)
https://github.com/joshuacaron/generator-angular2-gulp-webpack
https://www.npmjs.com/package/slush-angular2
(https://github.com/TheVelourFog/slush-angular2)- https://github.com/cureon/angular2-sass-gulp-boilerplate
Generator for creating Angular2 library or plugin
- https://github.com/jvandemo/generator-angular2-library
Angular2 Fullstack generator
- https://github.com/ericmdantas/generator-ng-fullstack
Ionic2 generator (Gulp; comes in ES6 and TS varieties)
- http://ionicframework.com/docs/v2/getting-started/installation/
回答2:
Here's what I've gathered so far:
Angular 2 scaffolding
Yeoman generators
generator-angular2
Outdated and very rustic. No preprocessors.
generator-gulp-angular2
Outdated. Out-of-the-box build.dev
fails. Features SASS and Jade.
generator-angular2-gulp-webpack
No preprocessors.
Other options
angular-cli (Official generator)
Based on ember-cli, still on alpha stage. No preprocessors. Also, I don't see a way to add preprocessing, except by creating Ember add-ons: http://www.emberaddons.com/.
Angular 2 Seed
Standalone scaffolding. Features Gulp and Webpack. Has instructions on how to install preprocessors. Needs manual Gulp configuration when adding dependencies. All code is written in Typescript.
Angular 2 Seed (ng2-material)
A fork of angular2-seed incorporating Material Design (ng2-material).
Angular 2 Seed - Jade
A fork of angular2-seed incorporating Bootstrap and SASS and Jade preprocessors (by yours truly).
Angular 2 Starter
An Angular 2 Starter kit featuring Angular 2 (Router, Http, Forms, Services, Tests, E2E), Karma, Protractor, Jasmine, TypeScript, and Webpack by @AngularClass.
angular2-sass-gulp-boilerplate
Although it's titled "yeoman generator" it just seems to be standalone scaffolding.
slush-angular2
Generator for Slush.
回答3:
generator-ng2-webpack is kept relatively up to date.
回答4:
Basic bash to create angular2 app. As instructed in official website. angular2-app-generator Kindly check this out.
回答5:
Check out Angular2 Application Scaffolder. It comes with Gulp, Sass, TypeScript, Karma, Jasmine, Bootstrap... Cheers
回答6:
The yeoman official tutorial is using generator-fountain-webapp, which supports angular2. It's in v1.0.0 rc at the moment but quite uptodate.
回答7:
I suggest these for Angular 2 with MEAN Yeoman Generator:
https://github.com/jussikinnula/angular2-mean-starter
https://github.com/giacomocerquone/angular2-mean-starter
回答8:
This one looks pretty up-to-date and works: https://github.com/ngx-rocket/generator-ngx-rocket
Still trying them...
来源:https://stackoverflow.com/questions/29649578/available-yeoman-generator-for-angular-2