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
Automatizando processos de frontend e deploy us...
Search
Thiago Borges
September 26, 2014
Programming
0
100
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
Tweet
Share
More Decks by Thiago Borges
See All by Thiago Borges
Bourbon, neat e bitters no github-pages
thiagoborges
0
58
Como o Rails melhorou o desenvolvimento web
thiagoborges
0
57
Como o Rails melhorou o desenvolvimento web
thiagoborges
0
110
Other Decks in Programming
See All in Programming
XP, Testing and ninja testing
m_seki
3
230
PostgreSQLのRow Level SecurityをPHPのORMで扱う Eloquent vs Doctrine #phpcon #track2
77web
2
500
#kanrk08 / 公開版 PicoRubyとマイコンでの自作トレーニング計測装置を用いたワークアウトの理想と現実
bash0c7
1
680
deno-redisの紹介とJSRパッケージの運用について (toranoana.deno #21)
uki00a
0
180
git worktree × Claude Code × MCP ~生成AI時代の並列開発フロー~
hisuzuya
1
540
RailsGirls IZUMO スポンサーLT
16bitidol
0
160
プロダクト志向ってなんなんだろうね
righttouch
PRO
0
180
High-Level Programming Languages in AI Era -Human Thought and Mind-
hayat01sh1da
PRO
0
710
PHPでWebSocketサーバーを実装しよう2025
kubotak
0
260
Is Xcode slowly dying out in 2025?
uetyo
1
250
来たるべき 8.0 に備えて React 19 新機能と React Router 固有機能の取捨選択とすり合わせを考える
oukayuka
2
890
A2A プロトコルを試してみる
azukiazusa1
2
1.3k
Featured
See All Featured
Being A Developer After 40
akosma
90
590k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
20k
Navigating Team Friction
lara
187
15k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.4k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
2.9k
The Cost Of JavaScript in 2023
addyosmani
51
8.5k
It's Worth the Effort
3n
185
28k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
281
13k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
5
240
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
657
60k
For a Future-Friendly Web
brad_frost
179
9.8k
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/