forked from ricciardi/editor-de-servicos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrunch-config.js
55 lines (50 loc) · 1.12 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
module.exports.config = {
paths: {
watched: [
'src/main/javascript/',
'src/main/resources/vendor',
'src/main/assets/stylesheets',
'src/test/javascript/',
],
public: 'src/main/resources/static/editar/assets/'
},
files: {
javascripts: {
joinTo: {
'app.js': new RegExp('^src/main/javascript/'),
'tests.js': new RegExp('^src/test/javascript/'),
'vendor.js': new RegExp('^(?!src/(main|test)/javascript/)'),
}
},
stylesheets: {
defaultExtension: 'scss',
joinTo: {
'main.css': [
new RegExp('^src/main/resources/vendor/.*\\.s?css'),
new RegExp('^src/main/assets/stylesheets/.*\\.scss')
]
}
}
},
conventions: {
assets: function () {
return false;
}
},
modules: {
nameCleaner: function (path) {
return path.replace(new RegExp('^src/(main|test)/javascript/'), '');
}
},
plugins: {
jshint: {
pattern: new RegExp('^src/(main|test)/javascript/.*\\.js$'),
},
sass: {
debug: 'comments'
},
cleanCss: {
removeEmpty: true
}
}
};