This repository has been archived by the owner on Jul 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrunch-config.coffee
63 lines (55 loc) · 2.36 KB
/
brunch-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
exports.config =
# See http://brunch.io/#documentation for docs.
paths:
watched: [
'app'
'api'
]
conventions:
assets: (path) ->
# config - Brunch asset filter - Stack Overflow http://stackoverflow.com/questions/18837232/brunch-asset-filter
(not /^bower_components/.test path) and /assets(\/|\\)/.test path
files:
javascripts:
joinTo:
'javascripts/app.js' : /^app/
'javascripts/vendor.js' : /^bower_components/
'javascripts/api.js': /^api/
order :
before: [
'bower_components/modernizr/modernizr.js'
'bower_components/jquery/dist/jquery.js'
'bower_components/lodash/dist/lodash.js'
]
after : [
'bower_components/bootstrap-sass-official/vendor/assets/javascripts/bootstrap/affix.js'
'bower_components/bootstrap-sass-official/vendor/assets/javascripts/bootstrap/alert.js'
'bower_components/bootstrap-sass-official/vendor/assets/javascripts/bootstrap/button.js'
'bower_components/bootstrap-sass-official/vendor/assets/javascripts/bootstrap/carousel.js'
'bower_components/bootstrap-sass-official/vendor/assets/javascripts/bootstrap/collapse.js'
'bower_components/bootstrap-sass-official/vendor/assets/javascripts/bootstrap/dropdown.js'
'bower_components/bootstrap-sass-official/vendor/assets/javascripts/bootstrap/tab.js'
'bower_components/bootstrap-sass-official/vendor/assets/javascripts/bootstrap/transition.js'
'bower_components/bootstrap-sass-official/vendor/assets/javascripts/bootstrap/scrollspy.js'
'bower_components/bootstrap-sass-official/vendor/assets/javascripts/bootstrap/modal.js'
'bower_components/bootstrap-sass-official/vendor/assets/javascripts/bootstrap/tooltip.js'
'bower_components/bootstrap-sass-official/vendor/assets/javascripts/bootstrap/popover.js'
]
stylesheets:
joinTo:
'stylesheets/app.css': 'app/styles/app.sass'
templates:
joinTo: 'javascripts/app.js'
plugins:
autoprefixer:
browsers: [
'last 1 version'
'> 5%'
'ie 9'
]
sass :
debug: 'comments' # or set to 'debug' for the FireSass-style output
server:
indexPath: 'public/index.html'
onCompile: (generatedFiles) ->
console.log generatedFiles.map (f) -> f.path