Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Yeoman generator
Search
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
Socio-Technical Evolution: Growing an Architecture and Its Organization for Fast Flow
cer
PRO
0
390
Canon EOS R50 V と R5 Mark II 購入でみえてきた最近のデジイチ VR180 事情、そして VR180 静止画に活路を見出すまで
karad
0
130
生成AIを利用するだけでなく、投資できる組織へ
pospome
2
390
ローカルLLMを⽤いてコード補完を⾏う VSCode拡張機能を作ってみた
nearme_tech
PRO
0
150
0→1 フロントエンド開発 Tips🚀 #レバテックMeetup
bengo4com
0
330
Patterns of Patterns
denyspoltorak
0
260
リリース時」テストから「デイリー実行」へ!開発マネージャが取り組んだ、レガシー自動テストのモダン化戦略
goataka
0
140
Python札幌 LT資料
t3tra
6
1k
AI前提で考えるiOSアプリのモダナイズ設計
yuukiw00w
0
180
Tinkerbellから学ぶ、Podで DHCPをリッスンする手法
tomokon
0
140
クラウドに依存しないS3を使った開発術
simesaba80
0
150
Context is King? 〜Verifiability時代とコンテキスト設計 / Beyond "Context is King"
rkaga
10
1.4k
Featured
See All Featured
How STYLIGHT went responsive
nonsquared
100
6k
The Language of Interfaces
destraynor
162
25k
Claude Code のすすめ
schroneko
65
200k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.7k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
65
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Exploring anti-patterns in Rails
aemeredith
2
200
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
1
200
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
120
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
0
160
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
0
22
Ruling the World: When Life Gets Gamed
codingconduct
0
96
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