Skip to content

Instantly share code, notes, and snippets.

@canujohann
Last active August 29, 2015 14:14
Show Gist options
  • Save canujohann/85a93f3f991b7b96dea0 to your computer and use it in GitHub Desktop.
Save canujohann/85a93f3f991b7b96dea0 to your computer and use it in GitHub Desktop.
Yeoman

YEOMAN tutorial

インストール

#install grunt
npm install -g grunt-cli

#install yo with npm
npm install -g yo bower

必要なジェネレータのインストール

#install some Scaffolding 
npm install -g generator-webapp
npm install -g generator-angular

プロジェクトディレクトリの作成(Scaffold)

#project creation
yo webapp
yo angular

サーバー起動

#launch server (Gruntfile included in project)
grunt server

その他コマンド

bower

#search,add,update dependencies
 bower search <dep>
 bower install <dep>..<depN>
 bower list
 bower update <dep>

他人が作ったプロジェクトの場合は

bower install & npm install

If you're using RequireJS... grunt bower

GULP / GRUNT

# Preview an app you have generated (with Livereload).
$ gulp serve / grunt serve

# Run the unit tests for an app.
$ gulp test / grunt serve

# Build an optimized, production-ready version of your app.
$ gulp /grunt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment