-
Notifications
You must be signed in to change notification settings - Fork 4
/
gulpfile.js
79 lines (75 loc) · 2.29 KB
/
gulpfile.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
var env = process.env.NODE_ENV || 'development'
var gulp;
assets = {
html: {
main:['client/index.html'],
files:'client/**/*.html',
output:{
path:'build'
}
},
scss: {
main:'client/static/scss/app.scss',
files:['client/static/scss/**/*.scss'],
output:{
path: 'build/static/css/'
}
},
js: {
main:[
'client/static/js/app.js',
'client/static/js/services/*.js',
'client/static/js/filters/*.js',
'client/static/js/controllers/*.js',
'client/static/js/directives/*.js'
],
files:'client/static/js/**/*.js',
output:{
path: 'build/static/js/',
filename: 'app.js'
}
},
vendorCss: {
main:'client/bower_components/angular-material/angular-material.css',
output:{
path: 'build/static/css/vendor/',
filename: 'angular-material.css'
}
},
vendorJs: {
main:[
'client/bower_components/angular/angular.js',
'client/bower_components/angular-route/angular-route.js',
'client/bower_components/angular-animate/angular-animate.js',
'client/bower_components/angular-aria/angular-aria.min.js',
'client/bower_components/angular-messages/angular-messages.js',
'client/bower_components/angular-material/angular-material.js',
'client/bower_components/ngstorage/ngStorage.js',
'client/bower_components/angulartics/src/angulartics.js',
'client/bower_components/angulartics-google-analytics/dist/angulartics-google-analytics.min.js'],
output:{
path: 'build/static/js/vendor/',
filename: 'angular.js'
}
},
images: {
main:['client/static/img/**/*'],
output:'build/static/img'
},
cacheFiles:{
main:['./build/**/*'],
external:[
'//fonts.googleapis.com/css?family=RobotoDraft:300,400,500,700,400italic',
'//fonts.googleapis.com/icon?family=Material+Icons',
'//fonts.gstatic.com/s/materialicons/v7/2fcrYFNaTjcS6g4U3t-Y5ZjZjT5FdEJ140U2DJYC3mY.woff2',
'//fonts.gstatic.com/s/robotodraft/v4/0xES5Sl_v6oyT7dAKuoni44P5ICox8Kq3LLUNMylGO4.woff2',
'//fonts.gstatic.com/s/robotodraft/v4/u0_CMoUf3y3-4Ss4ci-VwbBojE9J5UnpMtv5N3zfxwk.woff2'
]
}
}
if(env == 'development') {
gulp = require('./gulp/development.js')
}
else {
gulp = require('./gulp/production.js')
}