forked from bostonember/bostonember
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Assetfile
61 lines (55 loc) · 1.14 KB
/
Assetfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
require 'rake-pipeline-web-filters'
require 'uglifier'
output 'public/javascripts'
input 'assets/javascripts' do
match 'vendor/**/*.js' do
files = %w(
vendor/minispade.js
vendor/jquery.js
vendor/handlebars.js
vendor/ember.js
vendor/ember-data.js
)
concat files, 'vendor.js'
end
match '**/*.hbs' do
handlebars(
:key_name_proc => proc { |input|
input.path.sub(%r(^app/templates/), '').sub(/\.hbs$/, '')
}
)
concat 'app/templates.js'
end
match '{app,config,lib}/**/*.js' do
minispade(
string: true,
rewrite_requires: true,
module_id_generator: proc { |input|
input.path.sub(%r(^(app|config|lib)/), '').sub(/\.js$/, '')
}
)
concat 'application.js'
end
end
output 'public/stylesheets'
input 'assets/javascripts/spec' do
match '**/*.css' do
copy 'spec.css'
end
end
input 'assets/stylesheets' do
match '**/*.css' do
files = %w(
vendor/bootstrap.css
)
concat files, 'application.css'
end
end
output 'public'
input 'assets' do
match '*.erb' do
tilt do |input|
input.sub /\.erb$/, ''
end
end
end