Subscribed unsubscribe Subscribe Subscribe

AngularJSのインストールとdistディレクトリ(ドキュメントルートの置けば本番リリース完了)の作成

create angularjs app using yeoman

install package manager(Home brew) for OS X

$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

install node

$ brew install node

install yeoman

$ npm install -g yo

install generator-angular

$ npm install -g generator-angular

install compass

$ sudo gem install compass

if you don't do this, you'll see
You need to have Ruby and Compass installed and in your system PATH for this task to work
when you execute **grunt server

cd directory you put project files

$ cd /home/ユーザー名/

create dir

$ mkdir アプリ名

create angularjs web app

$ yo angular

preview your first app

$ grunt server

create release directory

$ grunt build
↓
grunt create dist directory

put dist directory to the Document Root of your Server

Finished!!!