Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Automatizando processos de frontend e deploy us...
Search
Thiago Borges
September 26, 2014
Programming
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Automatizando processos de frontend e deploy usando Gulp
Apresentado no Café com Dev em Londrina dia 26/09/2014 por Thiago Borges
Thiago Borges
September 26, 2014
More Decks by Thiago Borges
See All by Thiago Borges
Bourbon, neat e bitters no github-pages
thiagoborges
0
62
Como o Rails melhorou o desenvolvimento web
thiagoborges
0
66
Como o Rails melhorou o desenvolvimento web
thiagoborges
0
120
Other Decks in Programming
See All in Programming
自サークルのIdPからログアウトできるようになるまで
taiseiue
1
140
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
430
IBM Bob でAI駆動開発『QC-Playbook』
ichirokano2
0
110
現場と育てるRailsモデリング 〜Spreadsheetから始めたモデル設計〜
siroemk
2
590
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
150
phperだってパンチカードでコーディングしたい
o0h
PRO
0
330
Verilogで学ぶCPU自作入門
uyuki234
8
4.1k
気持ちぃ〜角丸 Squircle
ryu1013
0
310
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
390
AmebaブログはKMPから卒業します
kmars0605
0
190
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
35
17k
HTML-in-Canvasで作る未来のWeb UI表現
clockmaker
5
5.1k
Featured
See All Featured
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
750
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
280
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.9k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
520
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
710
Building Adaptive Systems
keathley
44
3.2k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
The SEO Collaboration Effect
kristinabergwall1
1
590
The Cost Of JavaScript in 2023
addyosmani
55
10k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k
Transcript
Automatizando processos de frontend e deploy usando Gulp Thiago Borges
! Desenvolvedor ~4 anos Ruby, Python, iOS @tgabrielborges http://thiagoborg.es/ Thiago
Borges
Problemas de frontend
• Cada nova requisição no browser leva no mínimo 20ms,
mas pode levar 100ms ou mais Carregamento da página
None
Cada um tem seu padrão
Tarefas repetitivas
Gulp "The streaming build system"
Como usar Gulp
Começando 1. $ npm install --global gulp 2. $ npm
init 3. $ npm install --save-dev gulp 4. Criar o arquivo gulpfile.js 5. Executar $ gulp
Fluxo Básico
Executar uma task gulp.task('mytask', function() { // Faz algo aqui
})
Executar várias tasks gulp.task('mytask',['array', 'of', 'task'], function() { // Faz
algo aqui })
Otimizando o carregamento da página • Concat • Minify •
Ugligy • Resize e otimização de imagens
Exemplo
Código mais limpo • SASS/LESS • CoffeeScript • Autoprefixer
Exemplo
Padrões ! • Executam a Análise do código baseado em
um guideline • gulp-jshint • gulp-coffeelint • gulp-scss-lint • gulp-csslint
Exemplo
Deploy
Exemplo
http://gulpjs.com/
None
Alternativas • Grunt.js • Brocolli • CodeKit
Obrigado
Links • https://ninefold.com/blog/2014/07/01/rails-and- the-warped-asset-pipeline/ • http://browserdiet.com/pt/ • https://developer.yahoo.com/performance/ rules.html •
http://guides.rubyonrails.org/asset_pipeline.html • http://www.jshint.com/docs/options/