-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.coffee
More file actions
54 lines (53 loc) · 1.17 KB
/
config.coffee
File metadata and controls
54 lines (53 loc) · 1.17 KB
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
exports.config =
# See http://brunch.readthedocs.org/en/latest/config.html for documentation.
plugins:
uglify:
mangle: true
compress:
global_defs:
DEBUG: false
sass:
mode: 'ruby'
assetsmanager:
copyTo: {}
javascript:
validate: true
jshint:
pattern: /^app\/.*\.js$/
options:
bitwise: false
curly: false
globals:
jQuery: true
warnOnly: true
modules:
definition: false
wrapper: (path, data) ->
if /^app[\\/].*/.test(path)
"""(function(){'use strict'\n#{data}})();\n\n"""
else data
paths:
public: 'assets'
files:
javascripts:
joinTo:
'javascript/app.js': /^app[\\/]/
'javascript/vendor.js': /^bower_components[\\/]/
order:
before: [
/[\\/]module\.js/
]
after: []
stylesheets:
joinTo:
'css/app.css': /^(app[\\/]|bower_components[\\/])/
order:
before: []
conventions:
ignored: []
assets: (path) ->
if /[\\/]$/.test path
return true
if /^app\/.*(html|jpg|png|svg)$/.test path
return true
return false