forked from gcollazo/brunch-with-ember-reloaded
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.coffee
executable file
·43 lines (37 loc) · 1.11 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
sysPath = require 'path'
exports.config =
# See http://brunch.io/#documentation for documentation.
files:
javascripts:
joinTo:
'javascripts/app.js': /^app/
'javascripts/vendor.js': /^vendor/
'test/javascripts/test-vendor.js': /^test(\/|\\)(?=vendor)/
order:
before: [
'vendor/scripts/console-polyfill.js'
'vendor/scripts/jquery-1.9.1.js'
'vendor/scripts/handlebars-1.0.rc.3.js'
'vendor/scripts/ember-1.0.0-rc.3.js'
]
stylesheets:
joinTo:
'stylesheets/app.css': /^(app|vendor)/
order:
before: ['vendor/styles/normalize.css']
templates:
precompile: true
root: 'templates'
joinTo: 'javascripts/app.js' : /^app/
modules:
addSourceURLs: true
# 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), '_'