-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbrunch-config.js
106 lines (106 loc) · 3.3 KB
/
brunch-config.js
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
'use strict'
exports.config = {
paths: {
watched: ['src'],
public: 'public'
},
files: {
javascripts: {
joinTo: {
'js/vendor.min.js': [
'bower_components/jquery/dist/jquery.js',
'bower_components/bootstrap/dist/js/bootstrap.js',
'bower_components/toastr/toastr.js',
'bower_components/rangy/*.js',
'bower_components/angular/angular.js',
'bower_components/angular-cookies/angular-cookies.js',
'bower_components/angular-sanitize/angular-sanitize.js',
'bower_components/angular-ui-router/release/angular-ui-router.js',
'bower_components/angular-md5/angular-md5.js',
'bower_components/angular-inline-text-editor/ite.js',
'bower_components/textAngular/dist/textAngular-sanitize.js',
'bower_components/textAngular/dist/textAngularSetup.js',
'bower_components/textAngular/dist/textAngular.js',
'bower_components/angular-translate/angular-translate.js',
'bower_components/angular-translate-loader-static-files/angular-translate-loader-static-files.js'
],
'js/app.min.js': /^src\/js/
},
order: {
before: [
'src/js/app.js',
'src/js/**/*.md.js',
'src/js/components/**/*.js'
]
}
},
stylesheets: {
joinTo: {
'css/vendor.min.css': /^bower_components/,
'css/app.min.css': /^src\/scss/
}
},
templates: {
joinTo: {
'js/templates.js': /^src\/js/
}
}
},
npm: {
enabled: false
},
conventions: {
assets: /static[\\/]/
},
modules: {
wrapper: false,
definition: false
},
plugins: {
autoReload: {
enabled: {
css: 'on',
js: 'on',
json: 'on'
}
},
babel: {
ignore: [
/^(bower_components)/
]
},
copycat: {
"css": ["bower_components/bootstrap/dist/css/bootstrap.min.css", "bower_components/bootstrap/dist/css/bootstrap.min.css.map", "bower_components/angular-inline-text-editor/ite.css"],
"fonts": "bower_components/font-awesome/fonts",
verbose: true,
onlyChanged: true
},
concatenate: {
files: {
"public/i18n/en.json": ['src/js/components/**/*.en.json'],
"public/i18n/fr.json": ['src/js/components/**/*.fr.json']
}
},
/*jshint -W106 */
angular_templates: {
module: 'app.views',
path_transform: (path) => path.replace('src/', '')
}
/*jshint +W106 */
},
overrides: {
production: {
sourceMaps: false,
plugins: {
autoReload: {
enabled: false
}
}
}
},
server: {
path: 'server.js',
port: 8000,
run: true
}
}