-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.coffee
55 lines (48 loc) · 1.5 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
sysPath = require 'path'
environment = process.env.BRUNCH_ENV ? 'development'
console.log "Running Brunch in #{environment} environment"
exports.config =
paths:
watched: ['app', 'test', 'vendor', 'config']
files:
javascripts:
joinTo:
'scripts/app.js':
new RegExp("^(app|config/environments/#{environment}\.coffee)")
'scripts/vendor.js':
new RegExp("^vendor/(scripts|ember/#{environment})")
order:
before: [
'vendor/scripts/console-polyfill.js'
'vendor/scripts/jquery.js'
'vendor/scripts/handlebars.js'
"vendor/scripts/ember_config.js"
"vendor/ember/#{environment}/ember.js"
"vendor/ember/#{environment}/ember-data.js"
"vendor/ember/#{environment}/ember-model.js"
# Anything else that depends on Ember
]
stylesheets:
joinTo:
'styles/app.css': /^(app|vendor)/
order:
before: ['vendor/styles/normalize.css']
templates:
precompile: true
root: 'templates'
joinTo: 'scripts/app.js' : /^app/
# allow _ prefixed templates so partials work
conventions:
ignored: (path) ->
startsWith = (string, substring) ->
string.indexOf(substring, 0) is 0
sep = sysPath.sep
if path.indexOf("app#{sep}templates#{sep}") is 0
false
else
startsWith sysPath.basename(path), '_'
overrides:
production:
optimize: true
sourceMaps: false
plugins: autoReload: enabled: false