Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Rails Assets wroc_love.rb
Tymon Tobolski
March 16, 2014
Programming
1
580
Rails Assets wroc_love.rb
wroc_love.rb 2014 lighting talk - the state and future of rails-assets.org
Tymon Tobolski
March 16, 2014
Tweet
Share
More Decks by Tymon Tobolski
See All by Tymon Tobolski
Only possible with Elixir - ubots Case Study
teamon
0
100
Fun with Elixir Macros
teamon
1
320
Elixir GenStage & Flow
teamon
2
700
Elixir - Bydgoszcz Web Development Meetup
teamon
2
480
Sidekiq
teamon
1
77
Git - Monterail style
teamon
1
70
Angular replacements for jQuery-based libraries
teamon
1
220
Angular replacements for jQuery-based libraries
teamon
2
280
Rails Assets LRUG
teamon
0
6.9k
Other Decks in Programming
See All in Programming
Deep Dive Into Google Zanzibar and its Concepts for Authorization Scenarios
dschenkelman
1
140
NEWT.net: Frontend Technology Selection
xpromx
0
280
Springin‘でみんなもクリエイターに!
ueponx
0
220
Java アプリとAWS の良い関係 - AWS でJava アプリを実行する一番簡単な方法教えます / AWS for Javarista
kanamasa
2
1.3k
短納期でローンチした新サービスをJavaで開発した話/launched new service using Java
eichisanden
6
2k
オブジェクト指向で挫折する初学者へ
deepoil
0
190
プロダクトのタイプ別 GraphQL クライアントの選び方
shozawa
0
5.7k
設計ナイト2022 トランザクションスクリプト
shinpeim
11
2.1k
Meet Swift Regex
usamik26
0
370
シェーダー氷山発掘記
logilabo
0
150
大規模プロダクトにLinterを導入し運用している話
hirokiotsuka
0
240
CakePHPの内部実装 から理解するPSR-7
boro1234
0
260
Featured
See All Featured
Designing the Hi-DPI Web
ddemaree
272
32k
Build The Right Thing And Hit Your Dates
maggiecrowley
19
1.2k
Bash Introduction
62gerente
597
210k
A Philosophy of Restraint
colly
192
15k
Practical Orchestrator
shlominoach
178
8.6k
Why Our Code Smells
bkeepers
PRO
324
55k
5 minutes of I Can Smell Your CMS
philhawksworth
196
18k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_i
23
15k
What’s in a name? Adding method to the madness
productmarketing
11
1.6k
The Invisible Customer
myddelton
110
11k
Ruby is Unlike a Banana
tanoku
91
9.2k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
151
13k
Transcript
Asset Management in Rails
State of the art • /vendor/assets • asset gems Ruby
World JavaScript World • /vendor/assets • bower
So what's the problem? • Asset Gems won't package themselves
• Asset Gems are always step behind official libraries • Unnecessary stuff like ruby helpers :-(
If only I could use bower components in ruby
+ rails-assets.org
source 'https://rubygems.org' +source 'https://rails-assets.org' ! gem 'rails' ! group :assets
do gem 'sass-rails' gem 'uglifier' gem 'coffee-rails' + gem 'rails-assets-bootstrap' + gem 'rails-assets-angular' + gem 'rails-assets-leaflet' end
application.js ! ! ! //= require_self +//= require bootstrap +//=
require angular +//= require leaflet //= require_tree . application.css ! ! /* *= require_self +*= require bootstrap +*= require leaflet *= require_tree . */
None
Is it any good? • No more vendor/assets :-) •
Proper versioning :-D • Dependency resolution x-D • Just works!
What's the catch? • Rails Assets is centralized solution •
Only tag releases are bundled to .gem files • Mixing assets definitions with gem definitions • Long gem names (rails-assets-jquery)
bower-rails source 'https://bower.io' ! asset "angular" asset "underscore", "~> 2.0"
! group :test, :development do asset "karma" end
application.js ! ! ! //= require_self +//= require bootstrap +//=
require angular +//= require leaflet //= require_tree . application.css ! ! /* *= require_self +*= require bootstrap +*= require leaflet *= require_tree . */
We're joining forces! rails-assets + bower-rails = <3
Please help us! Tymon Tobolski ! i@teamon.eu @iteamon Adam Stankiewicz
! sheerun@sher.pl @sheerun GitHub: rails-assets/rails-assets