-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.coffee
67 lines (60 loc) · 1.62 KB
/
config.coffee
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
62
63
64
65
66
67
exports.config =
# See docs at http://brunch.readthedocs.org/en/latest/config.html.
conventions:
assets: /^app\/assets\/|app\/scripts\/injectees\//
ignored: /^(bower_components\/bootstrap-less(-themes)?|app\/styles\/overrides|(.*?\/)?[_]\w*)/
modules:
definition: false
wrapper: false
paths:
public: '_public'
files:
javascripts:
joinTo:
'js/app.js': /^app/
'js/vendor.js': /^(bower_components|vendor)/
order:
before: [
'bower_components/lodash/lodash.js'
'bower_components/jquery/jquery.js'
'bower_components/angular/angular.js'
]
stylesheets:
joinTo:
'css/app.css': /^(app|vendor|bower_components)/
order:
before: [
'app/styles/app.scss'
]
templates:
joinTo:
'js/dontUseMe' : /^app/ # dirty hack for Jade compiling.
plugins:
jade:
pretty: yes # Adds pretty-indentation whitespaces to output (false by default)
jade_angular:
modules_folder: 'partials'
locals: {}
afterBrunch: [
'''
# compile slim files
ruby <<EOF
[ '_public' ].map do |path|
Dir.glob("#{path}/**/*.slim") do |file|
target = file.gsub( /\.slim$/, '')
system "slimrb #{file} #{target}"
end
end
EOF
# compile slim files
find _public/ -name '*.coffee' | xargs coffee -c # compile coffee
'''
]
autoReload:
delay: 700
# Enable or disable minifying of result js / css files.
minify: true
overrides:
production:
paths:
public: 'build'