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
Yeoman generator
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Valerio
May 18, 2016
Programming
0
44
Yeoman generator
A short talk about Yeoman generator
Valerio
May 18, 2016
Tweet
Share
More Decks by Valerio
See All by Valerio
Git flow
valeriocomo
0
62
Other Decks in Programming
See All in Programming
OSSとなったswift-buildで Xcodeのビルドを差し替えられるため 自分でXcodeを直せる時代になっている ダイアモンド問題編
yimajo
3
610
FOSDEM 2026: STUNMESH-go: Building P2P WireGuard Mesh Without Self-Hosted Infrastructure
tjjh89017
0
160
Honoを使ったリモートMCPサーバでAIツールとの連携を加速させる!
tosuri13
1
180
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
5
1k
今から始めるClaude Code超入門
448jp
8
8.6k
CSC307 Lecture 01
javiergs
PRO
0
690
Data-Centric Kaggle
isax1015
2
770
Apache Iceberg V3 and migration to V3
tomtanaka
0
160
Architectural Extensions
denyspoltorak
0
280
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
6k
AI & Enginnering
codelynx
0
110
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
160
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
340
58k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
0
1.1k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
240
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
53
Building Flexible Design Systems
yeseniaperezcruz
330
40k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.8k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
270
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
66
36k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
410
The Limits of Empathy - UXLibs8
cassininazir
1
210
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Transcript
Yeoman generator How to create a custom scaffolding tool
About me
Outline • Yeoman • Generators • Yo generator-generator • Demo
• Considerations • Q&A
Yeoman • Scaffolding tool • Task runner • Package management
Yeoman - Yo • Application start up • Build configuration
• Generators
Yeoman - Task runner • Grunt vs Gulp • Automation
• Tasks ◦ Build ◦ Test
Yeoman - Package Managment • bower vs npm ◦ frontend
dependencies ◦ dev dependencies
Generators
Generators • It’s a node module • Setup ◦ package.json
◦ npm init • Customization ◦ override Base class ◦ extends() with a constructor() • Run ◦ npm link ◦ yo generator-name [args]
Yo generator-generator • Install ◦ npm i generator-generator -g •
2 simple commands ◦ yo generator ◦ yo generator:subgenerator <name>
It’s demo time!
Considerations PROs • DRY • Error prevention • Enanhce automation
CONs • Scaffolding-only purpose
Questions?
valeriocomo Thank you!| @valeriocomo
[email protected]
http://www.valeriocomo.com
References • http://yeoman.io/ • http://yeoman.io/authoring/ • https://github.com/yeoman/generator-generator/ • http://goo.gl/5L0wuY