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
Bower
Search
Lucas Mazza
September 25, 2013
Programming
3
180
Bower
Apresentação feita no encontro do 7Masters sobre JavaScript.
Lucas Mazza
September 25, 2013
Tweet
Share
More Decks by Lucas Mazza
See All by Lucas Mazza
Ecto sem SQL
lucas
0
300
Feature Toggles! - Elixir
lucas
3
360
Feature Toggles! - Ruby
lucas
2
310
Testes automatizados e a prática antes da teoria
lucas
0
360
Circuit Breakers em Ruby
lucas
1
320
The Zen and Art of Refactoring
lucas
4
600
Minitest: voltando ao básico sobre testes
lucas
1
340
10 coisas que eu gostaria de ter aprendido mais cedo
lucas
67
5.2k
gems, executáveis e configurações
lucas
5
340
Other Decks in Programming
See All in Programming
Findy - エンジニア向け会社紹介 / Findy Letter for Engineers
findyinc
2
74k
TypeScriptで使いやすいOpenAPIの書き方
yukimochi_dwango
1
970
Go製Webアプリケーションのエラーとの向き合い方大全、あるいはやっぱりスタックトレース欲しいやん / Kyoto.go #50
utgwkk
6
2k
otelcol receiver 自作RTA / Pepabo Tech Conference #22 春のSREまつり
arthur1
0
1.1k
Documentation testsの恩恵 / Documentation testing benefits
ssssota
1
570
The World is a Network (and We Are Just Nodes)
whatyouhide
0
100
Amazon Aurora Serverless v2が意外と高かった話と、AWS Database Migration Serviceの話
satoshi256kbyte
1
110
JS RPCを理解する
yusukebe
5
310
The Design of Everyday APIs - PyCon 2024
roguelynn
1
240
Enjoy Creative Coding with Ruby (RubyKaigi2024)
chobishiba
0
1k
酒飲んでたらテックリードになった話
spbaya0141
0
210
Productivity is Messing Around and Having Fun
hollycummins
1
190
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
22
1.6k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
26
2.3k
Optimizing for Happiness
mojombo
371
69k
Music & Morning Musume
bryan
41
5.6k
The Cost Of JavaScript in 2023
addyosmani
21
4k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
34
6.1k
Building an army of robots
kneath
300
42k
A designer walks into a library…
pauljervisheath
201
23k
Building Flexible Design Systems
yeseniaperezcruz
320
37k
Typedesign – Prime Four
hannesfritz
36
2.1k
Docker and Python
trallard
35
2.7k
Building a Scalable Design System with Sketch
lauravandoore
457
32k
Transcript
Bower a package manager for the web
@lucasmazza
None
disclaimer esta não é uma introdução prática ao Bower
Nando Vieira @ Guru SP Slides @ fnando.me/np Post @
fnando.me/nq
"Bower is a package manager for the web. It offers
a generic, unopinionated solution to the problem of front-end package management."
None
formato padrão para distribuição
versão (tag) URL de um repo commit diretório standalone
manifesto para definir dependências
module#518331e7d5 vendor/assets/components/module jquery-pjax#1.7.3 vendor/assets/components/jquery-pjax ᵋᴷᴷ jquery#2.0.3 momentjs#2.1.0 vendor/assets/components/momentjs jquery#2.0.3 vendor/assets/components/jquery
Distribuindo seu código em pacotes
Semantic Versioning http:/ /semver.org/
Defina os entrypoints Use o ‘main’ para definir os arquivos
que o seu pacote expõe
Defina os entrypoints Disponibilizar versão precompiladas e minificadas não é
nada mal :)
$ bower install jquery jquery-migrate.js jquery-migrate.min.js jquery.js jquery.min.js jquery.min.map
Não empacote tudo Remova arquivos desnecessários do seu pacote com
a opção do ‘ignore’.
$ bower install bootstrap $ ls bower_components/bootstrap | wc -l
28 ಠ_ಠ
documentação travis.yml & amigos exemplos LESS, CoffeeScript, SCSS Gruntfile, Rakefile,
Makefile ✗
JS/CSS imagens e fontes LICENSE README.md CHANGELOG.md ✓
Teste o seu pacote $ bower install ~/code/github/thing $ ls
bower_components/thing
Use e abuse do Git stable branches para bugfixes version
tags como referência
Utilizando Bower no seu projeto
Pacotes no seu VCS nem todos desenvolvedores (e servers) precisam
ter Node.JS
Integre o Bower ao stack da sua equipe
Ruby / Rails Sprockets 2.10 +
AMD rpflorence/bower-import
Grunt stephenplusplus/grunt-bower-install
Usando outra coisa? Contribua com novas ferramentas
Obrigado! https:/ /twitter.com/lucasmazza https:/ /speakerdeck.com/lucas