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
Rails Assets wroc_love.rb
Search
Tymon Tobolski
March 16, 2014
Programming
1
630
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
180
Fun with Elixir Macros
teamon
1
380
Elixir GenStage & Flow
teamon
2
840
Elixir - Bydgoszcz Web Development Meetup
teamon
2
590
Sidekiq
teamon
1
120
Git - Monterail style
teamon
1
130
Angular replacements for jQuery-based libraries
teamon
1
270
Angular replacements for jQuery-based libraries
teamon
2
290
Rails Assets LRUG
teamon
0
7.2k
Other Decks in Programming
See All in Programming
CA.swift19 恋するAIアプリ開発の裏側
oskmr
0
380
R言語の環境構築と基礎 Tokyo.R 112
bob3bob3
0
280
Code Reviews
bkuhlmann
4
900
Deep Dive into React Stream/Serialize
mugi_uno
3
670
"config" ってなんだ? / What is "config"?
okashoi
0
320
Scalable Customer Journey Orchestration (CJO)
lewuathe
0
420
Let's learn code review
riofujimon
2
570
Goのmultiple errorsについて (2024年4月版)
syumai
4
1.2k
Build Apps for iOS, Android & Desktop in 100% Kotlin With Compose Multiplatform (mDevCamp 2024)
zsmb
0
440
サイコロで理解する統計的仮説検定の考え方
tatamiya
4
1k
ServerAction で Progressive Enhancement はどこまで頑張れるか? / progressive-enhancement-with-server-action
takefumiyoshii
6
420
Tailwind CSSを本気でカスタマイズする方法
fsubal
14
5.5k
Featured
See All Featured
Scaling GitHub
holman
457
140k
RailsConf 2023
tenderlove
8
550
VelocityConf: Rendering Performance Case Studies
addyosmani
321
23k
Fontdeck: Realign not Redesign
paulrobertlloyd
76
4.9k
Designing with Data
zakiwarfel
96
4.8k
For a Future-Friendly Web
brad_frost
172
9k
Code Review Best Practice
trishagee
56
15k
Optimizing for Happiness
mojombo
370
69k
Documentation Writing (for coders)
carmenintech
60
4k
Clear Off the Table
cherdarchuk
85
310k
Designing on Purpose - Digital PM Summit 2013
jponch
111
6.5k
The Brand Is Dead. Long Live the Brand.
mthomps
49
29k
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 !
[email protected]
@iteamon Adam Stankiewicz
!
[email protected]
@sheerun GitHub: rails-assets/rails-assets