Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
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
110
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
59
Como o Rails melhorou o desenvolvimento web
thiagoborges
0
58
Como o Rails melhorou o desenvolvimento web
thiagoborges
0
110
Other Decks in Programming
See All in Programming
Why Kotlin? 電子カルテを Kotlin で開発する理由 / Why Kotlin? at Henry
agatan
2
7.1k
大体よく分かるscala.collection.immutable.HashMap ~ Compressed Hash-Array Mapped Prefix-tree (CHAMP) ~
matsu_chara
2
220
「コードは上から下へ読むのが一番」と思った時に、思い出してほしい話
panda728
PRO
38
26k
ViewファーストなRailsアプリ開発のたのしさ
sugiwe
0
460
dotfiles 式年遷宮 令和最新版
masawada
1
770
Integrating WordPress and Symfony
alexandresalome
0
150
バックエンドエンジニアによる Amebaブログ K8s 基盤への CronJobの導入・運用経験
sunabig
0
160
AtCoder Conference 2025「LLM時代のAHC」
imjk
2
470
AIの誤りが許されない業務システムにおいて“信頼されるAI” を目指す / building-trusted-ai-systems
yuya4
6
3.3k
Context is King? 〜Verifiability時代とコンテキスト設計 / Beyond "Context is King"
rkaga
9
1.1k
【Streamlit x Snowflake】データ基盤からアプリ開発・AI活用まで、すべてをSnowflake内で実現
ayumu_yamaguchi
1
120
AIコーディングエージェント(Gemini)
kondai24
0
220
Featured
See All Featured
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
Git: the NoSQL Database
bkeepers
PRO
432
66k
Context Engineering - Making Every Token Count
addyosmani
9
510
It's Worth the Effort
3n
187
29k
[SF Ruby Conf 2025] Rails X
palkan
0
510
The Cult of Friendly URLs
andyhume
79
6.7k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
36
6.2k
The Invisible Side of Design
smashingmag
302
51k
Rails Girls Zürich Keynote
gr2m
95
14k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3k
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/