forked from scotch/angular-brunch-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrunch-config.coffee
42 lines (36 loc) · 1.21 KB
/
brunch-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
exports.config =
# See docs at https://github.com/brunch/brunch/blob/stable/docs/config.md.
paths:
public: '_public'
jadeCompileTrigger: '.compile-jade'
files:
javascripts:
joinTo:
'js/app.js': /^app/
'js/vendor.js': /^(bower_components|vendor)/
stylesheets:
joinTo:
'css/style.css': 'app/styles/style.less'
templates:
joinTo:
'.compile-jade': /^app/ # Hack for auto-compiling Jade
# templates.
modules:
definition: false
wrapper: false
plugins:
autoReload:
delay: 1000 if require('os').platform() is 'win32'
jade:
pretty: yes # Adds pretty-indentation whitespaces to output
# (false by default)
jade_angular:
modules_folder: 'partials'
locals: {}
server:
noPushState: true
onCompile: (generatedFiles) ->
# Less sourcemap hack/fix
require("child_process").exec([
"lessc --source-map --source-map-less-inline",
"app/styles/style.less _public/css/style.css"].join ' ')