This repository has been archived by the owner on Nov 21, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathconfig.coffee
66 lines (57 loc) · 1.81 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
sysPath = require 'path'
environment = process.env.BRUNCH_ENV ? 'development'
console.log "Running Brunch in #{environment} environment"
publicFolder = 'public'
publicFolder = 'tmp/test-public' if process.env.BRUNCH_ENV is 'test'
exports.config =
paths:
watched: ['app', 'test', 'vendor', 'config']
public: publicFolder
files:
javascripts:
joinTo:
'scripts/app.js':
new RegExp("^(app|config/environments/#{environment}\.coffee)")
'scripts/vendor.js': new RegExp('^('+
[
"vendor/(scripts|ember/#{environment}|ember/config)"
'bower_components'
].join('|') +
')')
order:
before: [
'bower_components/jquery/dist/jquery.js'
'bower_components/handlebars/handlebars.js'
"vendor/ember/config/before.coffee"
"vendor/ember/#{environment}/ember.js"
"vendor/ember/config/after.coffee"
"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|bower_components)/
order:
before: ['bower_components/normalize-css/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), '_'
server:
port: 7435
overrides:
production:
optimize: true
sourceMaps: false
plugins: autoReload: enabled: false