-
Notifications
You must be signed in to change notification settings - Fork 112
/
Copy pathgulp.config.js
44 lines (42 loc) · 1.02 KB
/
gulp.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
module.exports = function() {
var root = './';
var temp = './temp/';
var build = 'build';
var config = {
sassDir: ['app/sass/**/*.scss'],
sassWatchFiles: ['app/**/*.scss'],
cssDir: 'styles',
cssFile: 'styles/style.css',
htmltemplates: 'app/**/*.html',
index: root + 'index.html',
root: root,
temp: temp,
templateCache: {
file: 'templates.js',
options: {
module: 'app',
root: 'app',
standAlone: false
}
},
js: [
'scripts/**/*.js',
'app/**/*.module.js',
'app/**/*.js',
'!app/**/*.tests.js',
'!scripts/**/*.tests.js'
],
jsOrder: [
'**/app.module.js',
'**/*.module.js',
'**/*.js'
],
build: build,
buildFiles: [build + '/styles/*', build + '/js/*', build + '/index.html'],
optimized: {
app: 'app.js',
lib: 'lib.js'
}
};
return config;
};