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
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
Codexに役割を持たせる 他のAIエージェントと組み合わせる実務Tips
o8n
4
1.3k
ロボットのための工場に灯りは要らない
watany
10
2.8k
米国のサイバーセキュリティタイムラインと見る Goの暗号パッケージの進化
tomtwinkle
2
560
RubyとGoでゼロから作る証券システム: 高信頼性が求められるシステムのコードの外側にある設計と運用のリアル
free_world21
0
270
new(1.26) ← これすき / kamakura.go #8
utgwkk
0
2.3k
ポーリング処理廃止によるイベント駆動アーキテクチャへの移行
seitarof
3
1.1k
RAGでハマりがちな"Excelの罠"を、データの構造化で突破する
harumiweb
9
2.8k
Go 1.26でのsliceのメモリアロケーション最適化 / Go 1.26 リリースパーティ #go126party
mazrean
1
390
モジュラモノリスにおける境界をGoのinternalパッケージで守る
magavel
0
3.5k
nilとは何か 〜interfaceの構造とnil!=nilから理解する〜
kuro_kurorrr
3
1.9k
Claude Codeログ基盤の構築
giginet
PRO
7
3.1k
モックわからないマン卒業記 ~振る舞いを起点に見直した、フロントエンドテストにおけるモックの使いどころ~
tasukuwatanabe
2
230
Featured
See All Featured
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
300
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.7k
Technical Leadership for Architectural Decision Making
baasie
3
290
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.4k
The SEO Collaboration Effect
kristinabergwall1
0
390
A Modern Web Designer's Workflow
chriscoyier
698
190k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
150
Color Theory Basics | Prateek | Gurzu
gurzu
0
250
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
130
Making Projects Easy
brettharned
120
6.6k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
290
Git: the NoSQL Database
bkeepers
PRO
432
66k
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/