1
2

More than 5 years have passed since last update.

Angularの環境構築(Yeomanで構築)

Last updated at Posted at 2016-09-24

この記事はAngular+Firebaseでチャットアプリを作るのエントリーです。
関連:Angularの環境構築(Angular CLIで構築)

Yeomanでの環境構築も試してみました。
手間はAngular CLIよりもかからないかもしれないけれど、将来性とカスタマイズ性を考えたらAngular CLIの方がいいかな……

yeoman&angular2&typescriptインストール→実行

npm install yo generator-angular2-typescript typescript -g
mkdir my-new-project && cd $_
yo angular2-typescript [app-name]

yeomanの選択肢↓

? Which CSS framework would you like to use? Bootstrap
? Which module loader would you like to use? Webpack
? Would you like to use Gulp? No
? Which additional angular packages would you like to include
@angular/forms,
@angular/http
? What's your name: **
? Your email (optional): **@gmail.com
? Your website (optional): 
? Which license do you want to use? MIT

generator-angular2-typescriptでできること

npm start //実行
npm run build //ビルド
npm test // karmaテスト

実行するとこんな感じ↓

app test.png

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2