-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
executable file
·125 lines (94 loc) · 1.94 KB
/
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
var gulp = require("gulp");
var merge = require("merge-stream");
var imagemin = require('gulp-imagemin');
var reporters = [
{
index:0,
name:"custom"
},
{
index:1,
name:"stylish"
}
]
var whichReporter = 1;
var htmlDest = "dist/assets/views/";
var mainScripts = [
"src/assets/js/supporting-code.js",
"src/app/state/stateModule.js",
"src/app/state/runtimeState.js",
"src/app/state/states.js",
"src/app/app.js",
"src/app/main.controller.js",
"src/app/services/**/*.js",
"src/app/directives/**/*.js",
"src/evolve-app/**/*.js",
"src/assets/js/parallax-5.0.js",
"src/assets/js/**/*.js",
"!src/**/*.spec.js"
]
var sassStyles = [
"src/assets/css/classes.scss",
"src/assets/css/styles.scss"
]
var cssStyles = [
'temp/**/*.css',
"node_modules/@fortawesome/fontawesome-free/css/all.css"
]
var shimFile = "node_modules/@babel/polyfill/dist/polyfill.js";
var vendorScripts = [
//npm packages for front end use
"node_modules/jquery.scrollto/jquery.scrollTo.js",
"node_modules/velocity-animate/velocity.js",
"node_modules/@methodswithclass/shared/dist/shared.js"
]
var miscSrc = function () {
var src1 = gulp.src([
'src/assets/config/**/*.*',
])
.pipe(gulp.dest("dist/assets/config/"))
var src2 = gulp.src([
'src/assets/data/kaggle/**/*.csv'
])
.pipe(gulp.dest("dist/assets/data/"))
return merge(src1, src2);
}
// var minify = process.env.NODE_ENV == "production";
var minify = {
main:{
full:{
make:true,
inject:false
},
min:{
make:true,
inject:true
}
},
vendor:{
full:{
make:true,
inject:true
},
min:{
make:false,
inject:false
}
}
}
var livereloadPort = 3050;
module.exports = {
gulp:{
shimFile:shimFile,
htmlDest:htmlDest,
mainScripts:mainScripts,
vendorScripts:vendorScripts,
sassStyles:sassStyles,
cssStyles:cssStyles,
miscSrc:miscSrc,
minify:minify,
reporters:reporters,
reporter:whichReporter
},
livereloadPort:livereloadPort
}