-
Notifications
You must be signed in to change notification settings - Fork 4
/
mimosa-config.js
63 lines (55 loc) · 1.21 KB
/
mimosa-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
exports.config = {
minMimosaVersion: '2.1.11',
modules: [
'handlebars-on-window',
'ember-handlebars',
'es6-module-transpiler',
'less',
'copy',
'jshint',
'csslint',
'minify-js',
'minify-css',
'dependency-bundler',
'require',
'server',
'live-reload',
'bower'
],
emberHandlebars: {
emberPath: 'ember' // requirejs alias for vendor/ember
},
es6Modules: {
exclude: [/[/\\]vendor[/\\]/, /[/\\](main|test_main|almond)[\.-]/]
},
jshint: {
exclude: ['javascripts/almond.js'],
rules: {
esnext: true
}
},
template: {
// Strip out '*/templates/' when mapping file paths to template names
nameTransform: /.*\/templates\//
},
server: {
// Use Mimosa's embedded Express server to serve the app
defaultServer: {
enabled: true,
onePager: true
},
views: {
compileWith: 'handlebars',
extension: 'hbs'
}
},
bower: {
copy: { strategy: 'vendorRoot' }
},
dependencyBundler: {
bundles: [
{ name: 'modules.js', dependencies: [(/\/(components|controllers|models|routes|views)\//)] },
{ name: 'tests.js', dependencies: ['/tests/unit/', '/tests/integration/'] }
]
}
}