SlideShare une entreprise Scribd logo
1  sur  17
Télécharger pour lire hors ligne
使用Yeoman 開發 Web App
@randylien
Wednesday, July 31, 13
Randy Lien
@randylien
敦化南路 T 公司上班
Wednesday, July 31, 13
Wednesday, July 31, 13
Wednesday, July 31, 13
Wednesday, July 31, 13
yeoman
• Yo
• Grunt
• Bower
• Yeoman 1.0 Backbone RequireJS
• 四個月之間比較穩定,Grunt 文件必讀
Wednesday, July 31, 13
Bower
• 好棒呀
• 元件 !== 原始碼 (issue 46, issue 88 )
• 區分原始碼跟元件的存放位置(內部整合)
• grunt-bower-task / bower-installer
Wednesday, July 31, 13
grunt
• grunt-shell 幫忙整合原先的開發流程
• scp uploading
• 一個存 -> compile JS/CSS, livereload,
regenerate documents
Wednesday, July 31, 13
Promise
• 太多內部服務要溝通 (License, Popup...etc)
• 執行順序
• 規格改變
• Callback hells
Wednesday, July 31, 13
Architecture
• MVW (Marionette.js)
• 將以往設計的 Class 跟 JavaScript 行為的
Class 分開,善用 data attribute 如 data-js
• 監控你的 UI Model,而非你的 DOM
• Modelbinder, Backbone.stickit
Wednesday, July 31, 13
Backbone.js/Marionette
• 使用外部 templates,而非直接從 CSS
selector 來取得
• 善用 Marionette.js 的 Layout/Region 來組
織你的元件,而非 el 來定義。
• 元件化,將來有助單元測試與重構
Wednesday, July 31, 13
i18n
• 產品一次要出 5 國語系 (中中日英法)
• i18next.com
• online translation UI
• post missing resources to server
• localStorage
• jQuery function
Wednesday, July 31, 13
CSS
• 用資料夾來整理你的 Less/Sass 原始碼
• 元件的思維,重覆使用性,擴充性
• 建立自已的 UI Pattern
Wednesday, July 31, 13
Style Guide
• 文件,重複使用
• 跨部門 Review,給Vendor,Outsourcing
• Contribution
Wednesday, July 31, 13
Screenshots
• Marketing,內部 Review,簡報
• Casper.js,grunt-casper
• casper.wait(6000) 等待動畫,XHR 完。
Wednesday, July 31, 13
Deployment
grunt build
Wednesday, July 31, 13
Thanks
Wednesday, July 31, 13

Contenu connexe

En vedette

A jelszó hasznalatáról háziasszonyoknak
A jelszó hasznalatáról háziasszonyoknakA jelszó hasznalatáról háziasszonyoknak
A jelszó hasznalatáról háziasszonyoknakpappet
 
Christmas Lights Up
Christmas Lights UpChristmas Lights Up
Christmas Lights UpBillen
 
TEDxThe HagueLIVE Sponsor Presentation
TEDxThe HagueLIVE Sponsor PresentationTEDxThe HagueLIVE Sponsor Presentation
TEDxThe HagueLIVE Sponsor Presentationearlybird44
 
EPiServer Update October 2013
EPiServer Update October 2013EPiServer Update October 2013
EPiServer Update October 2013Eric Reiss
 
Crowdfunding – Naar een duurzame sector (Anne Hakvoort)
Crowdfunding – Naar een duurzame sector (Anne Hakvoort)Crowdfunding – Naar een duurzame sector (Anne Hakvoort)
Crowdfunding – Naar een duurzame sector (Anne Hakvoort)Ronald Kleverlaan
 
15 Kuulsust
15 Kuulsust15 Kuulsust
15 Kuulsustmargenj
 
Social Media in Crisis Management: ISCRAM Summer School 2011
Social Media in Crisis Management: ISCRAM Summer School 2011Social Media in Crisis Management: ISCRAM Summer School 2011
Social Media in Crisis Management: ISCRAM Summer School 2011Connie White
 
Platform Healthblockchain NL MedicalPHIT Piet Hein Zwaal
Platform Healthblockchain NL MedicalPHIT Piet Hein Zwaal  Platform Healthblockchain NL MedicalPHIT Piet Hein Zwaal
Platform Healthblockchain NL MedicalPHIT Piet Hein Zwaal Piet Hein Zwaal
 
Crowdfunding Workshop Kennisfestival Delft
Crowdfunding Workshop Kennisfestival DelftCrowdfunding Workshop Kennisfestival Delft
Crowdfunding Workshop Kennisfestival DelftRonald Kleverlaan
 
Learning Styles Presentation By The Yellow Team
Learning Styles Presentation By The Yellow TeamLearning Styles Presentation By The Yellow Team
Learning Styles Presentation By The Yellow Teamguest110fc8
 
WIAD Budapest 2014
WIAD Budapest 2014WIAD Budapest 2014
WIAD Budapest 2014Eric Reiss
 
Users, experience, and beyond
Users, experience, and beyondUsers, experience, and beyond
Users, experience, and beyondEric Reiss
 

En vedette (20)

A jelszó hasznalatáról háziasszonyoknak
A jelszó hasznalatáról háziasszonyoknakA jelszó hasznalatáról háziasszonyoknak
A jelszó hasznalatáról háziasszonyoknak
 
Christmas Lights Up
Christmas Lights UpChristmas Lights Up
Christmas Lights Up
 
How to access to capitol
How to access to capitolHow to access to capitol
How to access to capitol
 
Traditional Art
Traditional ArtTraditional Art
Traditional Art
 
Cos brabant - crowdfunding
Cos brabant - crowdfundingCos brabant - crowdfunding
Cos brabant - crowdfunding
 
La ideologia homosexual
La ideologia homosexualLa ideologia homosexual
La ideologia homosexual
 
TEDxThe HagueLIVE Sponsor Presentation
TEDxThe HagueLIVE Sponsor PresentationTEDxThe HagueLIVE Sponsor Presentation
TEDxThe HagueLIVE Sponsor Presentation
 
EPiServer Update October 2013
EPiServer Update October 2013EPiServer Update October 2013
EPiServer Update October 2013
 
Crowdfunding – Naar een duurzame sector (Anne Hakvoort)
Crowdfunding – Naar een duurzame sector (Anne Hakvoort)Crowdfunding – Naar een duurzame sector (Anne Hakvoort)
Crowdfunding – Naar een duurzame sector (Anne Hakvoort)
 
15 Kuulsust
15 Kuulsust15 Kuulsust
15 Kuulsust
 
Rba Final
Rba FinalRba Final
Rba Final
 
Social Media in Crisis Management: ISCRAM Summer School 2011
Social Media in Crisis Management: ISCRAM Summer School 2011Social Media in Crisis Management: ISCRAM Summer School 2011
Social Media in Crisis Management: ISCRAM Summer School 2011
 
HMT EU Negotiations Seminar
HMT EU Negotiations SeminarHMT EU Negotiations Seminar
HMT EU Negotiations Seminar
 
Platform Healthblockchain NL MedicalPHIT Piet Hein Zwaal
Platform Healthblockchain NL MedicalPHIT Piet Hein Zwaal  Platform Healthblockchain NL MedicalPHIT Piet Hein Zwaal
Platform Healthblockchain NL MedicalPHIT Piet Hein Zwaal
 
Crowdfunding Workshop Kennisfestival Delft
Crowdfunding Workshop Kennisfestival DelftCrowdfunding Workshop Kennisfestival Delft
Crowdfunding Workshop Kennisfestival Delft
 
Do 16 35
Do 16 35Do 16 35
Do 16 35
 
Learning Styles Presentation By The Yellow Team
Learning Styles Presentation By The Yellow TeamLearning Styles Presentation By The Yellow Team
Learning Styles Presentation By The Yellow Team
 
so{new}today
so{new}todayso{new}today
so{new}today
 
WIAD Budapest 2014
WIAD Budapest 2014WIAD Budapest 2014
WIAD Budapest 2014
 
Users, experience, and beyond
Users, experience, and beyondUsers, experience, and beyond
Users, experience, and beyond
 

Plus de Hsuan Fu Lien

The Ideas of Clojure - Things I learn from Clojure
The Ideas of Clojure - Things I learn from ClojureThe Ideas of Clojure - Things I learn from Clojure
The Ideas of Clojure - Things I learn from ClojureHsuan Fu Lien
 
Django Girls 2015 - CSS
Django Girls 2015 - CSSDjango Girls 2015 - CSS
Django Girls 2015 - CSSHsuan Fu Lien
 
Django Girls 2015 - HTML
Django Girls 2015 -  HTMLDjango Girls 2015 -  HTML
Django Girls 2015 - HTMLHsuan Fu Lien
 
Immutable, performance and components communication
Immutable, performance and components communicationImmutable, performance and components communication
Immutable, performance and components communicationHsuan Fu Lien
 
Introduce Flux & react in practices (KKBOX)
Introduce Flux & react in practices (KKBOX)Introduce Flux & react in practices (KKBOX)
Introduce Flux & react in practices (KKBOX)Hsuan Fu Lien
 
What is the next step for a front end beginner
What is the next step for a front end beginnerWhat is the next step for a front end beginner
What is the next step for a front end beginnerHsuan Fu Lien
 
Understand front end developer
Understand front end developerUnderstand front end developer
Understand front end developerHsuan Fu Lien
 
Introduce flux & react in practice
Introduce flux & react in practiceIntroduce flux & react in practice
Introduce flux & react in practiceHsuan Fu Lien
 
UI Engineering Introduction
UI Engineering IntroductionUI Engineering Introduction
UI Engineering IntroductionHsuan Fu Lien
 

Plus de Hsuan Fu Lien (10)

The Ideas of Clojure - Things I learn from Clojure
The Ideas of Clojure - Things I learn from ClojureThe Ideas of Clojure - Things I learn from Clojure
The Ideas of Clojure - Things I learn from Clojure
 
Django Girls 2015 - CSS
Django Girls 2015 - CSSDjango Girls 2015 - CSS
Django Girls 2015 - CSS
 
Django Girls 2015 - HTML
Django Girls 2015 -  HTMLDjango Girls 2015 -  HTML
Django Girls 2015 - HTML
 
React.JS Conf & F8
React.JS Conf & F8React.JS Conf & F8
React.JS Conf & F8
 
Immutable, performance and components communication
Immutable, performance and components communicationImmutable, performance and components communication
Immutable, performance and components communication
 
Introduce Flux & react in practices (KKBOX)
Introduce Flux & react in practices (KKBOX)Introduce Flux & react in practices (KKBOX)
Introduce Flux & react in practices (KKBOX)
 
What is the next step for a front end beginner
What is the next step for a front end beginnerWhat is the next step for a front end beginner
What is the next step for a front end beginner
 
Understand front end developer
Understand front end developerUnderstand front end developer
Understand front end developer
 
Introduce flux & react in practice
Introduce flux & react in practiceIntroduce flux & react in practice
Introduce flux & react in practice
 
UI Engineering Introduction
UI Engineering IntroductionUI Engineering Introduction
UI Engineering Introduction
 

Using Yeoman to develop Web App