-
Notifications
You must be signed in to change notification settings - Fork 3
/
gulp.config.js
55 lines (54 loc) · 1.36 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
45
46
47
48
49
50
51
52
53
54
55
const GLOBAL_STYL = 'app/global.styl';
const GLOBAL_THRESHOLD = 50;
// noinspection JSUnusedGlobalSymbols
const config = {
browserSyncPort: 4000,
apiPhp: 'http://localhost:7777',
vmPhp: 'https://10.20.14.108:9100',
files: {
js: ['*.js', 'gulp/**/*.js'],
ts: ['app/**/*.ts'],
tsd: ['typings/**/*.d.ts'],
styl: ['app/**/*.styl', '!' + GLOBAL_STYL],
stylStream: [GLOBAL_STYL],
copy: [
'app/**/*.html',
'app/**/*.css',
'app/**/*.jpg',
'app/**/*.png',
'app/**/*.ico',
'app/**/*.eot',
'app/**/*.svg',
'app/**/*.ttf',
'app/**/*.woff',
'app/**/*.woff2',
'app/**/*.min.js'
]
},
coverageThresholds: {
statements: GLOBAL_THRESHOLD,
branches: GLOBAL_THRESHOLD,
functions: GLOBAL_THRESHOLD,
lines: GLOBAL_THRESHOLD
},
coverageOutput: 'coverage/coverage-js.json',
coverageReports: {
'html': 'coverage/html',
'json-summary': 'coverage/coverage-ts-summary.json',
'json': 'coverage/coverage-ts.json',
'text-summary': 'coverage/coverage-ts-summary.txt',
'text': 'coverage/coverage-ts.txt'
},
sourcemaps: {
dir: '.',
options: {
includeContent: false,
// Returns 'app' file relative to 'build' file
// Used for locating the original file
sourceRoot: () => {
return '../app';
}
}
}
};
module.exports = config;