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
43
Objective-Cのpropertyのこと
torufuruya
0
51
Featured
See All Featured
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
110
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
55
Producing Creativity
orderedlist
PRO
348
40k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
0
110
Tell your own story through comics
letsgokoyo
1
810
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
0
1.9k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
1
1.3k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
220
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
92
Odyssey Design
rkendrick25
PRO
1
490
Designing for Performance
lara
610
70k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
930
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