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
Introduction to Bower
Search
Gilles Ruppert
November 15, 2013
Programming
2
130
Introduction to Bower
A very quick and cheerful introduction to Bower for the local JS meetup group
Gilles Ruppert
November 15, 2013
Tweet
Share
More Decks by Gilles Ruppert
See All by Gilles Ruppert
AngularJS: the Good, the Bad and the Ugly
gillesruppert
3
2.5k
JavaScript all the Things!
gillesruppert
1
310
Attack of the drones!
gillesruppert
1
160
Other Decks in Programming
See All in Programming
Google Play Consoleデベロッパー アカウントの確認 / Verifying your Play Console developer account
kubode
0
170
How to debug Xdebug... or any other weird bug in PHP
dunglas
2
1.3k
デバッグの話 / Debugging for Beginners
kaityo256
PRO
8
650
CSC509 Lecture 02
javiergs
PRO
0
170
Cloud Adoption Framework にみる組織とクラウド導入戦略
tomokusaba
2
570
Why I Choose NetBeans for Jakarta EE
ivargrimstad
0
350
20241004 モノタロウ式~ドメインモデリングとリアーキテクチャ
monotaro
PRO
2
360
Hi, have you met Kotlin Multiplatform? | DevFest Vienna 2024
prof18
0
190
学生の時に開催したPerl入学式をきっかけにエンジニアが組織に馴染むために勉強会を主催や仲間と参加して職能間の境界を越えていく
ohmori_yusuke
2
140
Beyond Laravel Octane - Hyperf for Laravel Artisans
albertcht
1
140
GrafanaのHTTP API を眺めてみよう
rinchoku
0
340
Progressive Web Apps for Rails developers
siaw23
2
560
Featured
See All Featured
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
225
22k
Pencils Down: Stop Designing & Start Developing
hursman
119
11k
Gamification - CAS2011
davidbonilla
80
5k
Making Projects Easy
brettharned
115
5.9k
Bash Introduction
62gerente
608
210k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
25
1.7k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
664
120k
The Power of CSS Pseudo Elements
geoffreycrofte
71
5.3k
Imperfection Machines: The Place of Print at Facebook
scottboms
264
13k
Typedesign – Prime Four
hannesfritz
39
2.3k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Transcript
Bower Sane package management for the browser
What is Bower? • package manager for the web •
targets front-end • unopionated • cli and programmatic interfaces • no shared dependencies • flat dependency tree
Why bother?
Old days (install libraries) • go to http://www.jquery.com • download
latest version • copy lib folder • do the same for other libs
Old days (update lib) • go to http://jquery.com • check
whether there is a newer version • download • move to correct folder and overwrite previous lib • if broken, find old version and use that
The bower way (install) • bower search query (if you
don’t know what the package is called) • bower install jquery
The bower way (update) • bower update • if it
breaks, bower install package#version
Getting started
npm install -g bower
starting a project • bower init • same as npm
init • creates a bower.json file
finding & installing • bower search jquery • bower install
jquery • bower install --save jquery • bower install --save-dev expect
installing an existing project • bower install
useful commands • bower uninstall package_name • bower list •
bower search package_name • bower home package_name • bower prune • bower update
continued… • bower --help • bower command --help
develop with multiple packages
assume this • write project • write separate package (i.e.
mini lib?) • use 2nd package as part of 1st • 2nd package changes
–you “F***! Do I really have to push a new
version each time I do a change?!?!? I will go back to my monolith!”
Don’t despair! bower link to the rescue!
in package 2 • bower link
in 1st package • bower link package-2
Done! and no need to go back to the monolith
:)
Configuration
.bowerrc • directory • cwd • custom registry • etc
• (https://docs.google.com/document/d/ 1APq7oA9tNao1UYWyOm8dKqlRP2blVkROYLZ2fL IjtWc/edit#heading=h.4pzytc1f9j8k)
What else? • programmatic API • can be used by
build tool etc?
Thanks! @gillesruppert