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
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
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
680
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
170
Grafana:建立系統全知視角的捷徑
blueswen
0
330
AI前提で考えるiOSアプリのモダナイズ設計
yuukiw00w
0
220
インターン生でもAuth0で認証基盤刷新が出来るのか
taku271
0
190
AIエージェントのキホンから学ぶ「エージェンティックコーディング」実践入門
masahiro_nishimi
5
420
Smart Handoff/Pickup ガイド - Claude Code セッション管理
yukiigarashi
0
130
Fluid Templating in TYPO3 14
s2b
0
130
今から始めるClaude Code超入門
448jp
8
8.6k
Patterns of Patterns
denyspoltorak
0
1.4k
15年続くIoTサービスのSREエンジニアが挑む分散トレーシング導入
melonps
2
190
Apache Iceberg V3 and migration to V3
tomtanaka
0
160
Featured
See All Featured
Paper Plane (Part 1)
katiecoart
PRO
0
4.1k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
49
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
300
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
580
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.1k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.2k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
Thoughts on Productivity
jonyablonski
74
5k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
63
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
110
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