Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Getting Started Yeoman
Search
Toru Furuya
January 29, 2014
0
42
Getting Started Yeoman
Toru Furuya
January 29, 2014
Tweet
Share
More Decks by Toru Furuya
See All by Toru Furuya
How To Built Uranow Android App
torufuruya
0
66
Automatic Kotlin Lint with Pipeline and Danger
torufuruya
0
100
Realm Academyのすすめ
torufuruya
0
43
iPhone XでのSafe AreaとWebコンテンツの表示制限について
torufuruya
0
98
Git subtree の導入
torufuruya
0
110
CI as Code の導入
torufuruya
0
41
Objective-Cのpropertyのこと
torufuruya
0
51
Featured
See All Featured
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
46
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
200
The Art of Programming - Codeland 2020
erikaheidi
56
14k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
39
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
132
19k
BBQ
matthewcrist
89
9.9k
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.3k
WCS-LA-2024
lcolladotor
0
400
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
190
A Tale of Four Properties
chriscoyier
162
23k
Transcript
Getting Started Yeoman
はじめに 今日は「入門」です。 とりあえずYeomanを使うところを、デモ中心に見 せれたらいいなと思います。
はじめに Nodeインストール済で npmコマンドが使える環境を前提とします。
What is Yeoman? 1. 〈英〉〔12~15世紀の〕召使い、従僕◆自由民の 資格を持つ貴族の召使い。 2. 〈英〉〔15世紀の〕ヨーマン、独立自営農民、自由 農民、自作農
None
None
THE WEB'S SCAFFOLDING TOOL FOR MODERN WEBAPPS
株式会社LIG 『「scaffold? 何それ?」って言ったら笑わ れた』 http://liginc.co.jp/programmer/archives/555 scaffold?
scaffold? Webアプリケーションのひな形となるソースコード を自動生成
やること > npm install -g yo grunt-cli bower > npm
install -g generator-webapp > mkdir webapp && cd $_ > yo webapp > grunt serve
デモ うまくできるといいな
generators... • Web App (今デモったやつ) • AngularJS • Backbone •
Ember • Polymer • Jasmine • Mocha • Karma • Chrome Apps Basic Boilerplate • Chrome Extension Boilerplate
AngularJS style > npm install -g generator-angular > mkdir angular
&& cd $_ > yo angular > grunt serve
AngularJS style > yo angular:route myroute > yo angular:controller user
> yo angular:view user > yo angular:directive myDirective > yo angular:service myService
デモ うまくできるといいな
Backbone style > npm install -g generator-backbone > mkdir backbone
&& cd $_ > yo backbone > grunt serve
Backbone style > yo backbone:model blog > yo backbone:collection blog
> yo backbone:router blog > yo backbone:view blog
デモ 時間があったら
はまったとこ • compassがエラー吐きまくる... • compassとsassの相性が問題らしい • compassとsassをgemでinstallしなおす • とりあえず以下バージョンで動作確認済 ◦
compass 0.12.2 ◦ sass 3.2.12 • http://javascript-memo2.seesaa.net/article/38459314 1.html
感想 • とにかく簡単 • AngularJSとかBackboneの知識が浅くてもコマンドさえ覚 えちゃえばベースは作れそう • Gruntfileを自動で作ってくれるのとてもありがたい • 最初からGruntfileが機能モリモリで生成されるからある程
度の知識がないと何やってるか全然分かんないと思う(まあ 分かんなくても作れるけど) • “volo”っていう似たツールも気になるところ
リンク • yeoman official site ◦ http://yeoman.io/ • yeoman-generator ◦
https://github.com/yeoman/generator
ご清聴ありがとうございます。
What is volo? • https://github.com/volojs/volo
None