-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.coffee
47 lines (44 loc) · 1.26 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
exports.config =
# See docs at http://brunch.readthedocs.org/en/latest/config.html.
conventions:
assets: /^app\/assets\//
modules:
definition: false
wrapper: false
paths:
public: 'public'
jadeCompileTrigger: '_jade_templates.js'
files:
javascripts:
joinTo:
# Non-spec scripts are application code
'app.js': /^app\/(?!.+\.spec\.)/
# Specs are compiled into another file by themselves
'spec.js': /^app\/.+\.spec\./
# Anything managed by Bower is vendor code
'vendor.js': /^(bower_components|vendor)/
order:
before: [
# Essential libraries
'bower_components/lodash/lodash.js'
'bower_components/jquery/jquery.js'
'bower_components/angular/angular.js'
# Entry point
'app/main.coffee'
]
stylesheets:
joinTo:
'app.css': /^app/
'vendor.css': /^(bower_components|vendor)/
templates:
joinTo:
'_jade_templates.js': /^app/
plugins:
jade_angular:
# Only care about 404 because of Angular's HTML5 mode
static_mask: /404/
# All templates should be in one single file
single_file: true
single_file_name: 'templates.js'
process_env:
raw: true