-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.js
42 lines (32 loc) · 865 Bytes
/
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
/**
* Build configuration.
* @module gulp/config
*/
export const env = {};
export const src = {};
export const dest = {};
export const browsers = ['last 2 versions'];
//
// Environment config
// --------------------
const gulpEnv = process.env.GULP_ENV || 'dist'; // eslint-disable-line no-process-env, no-undef
const isDist = gulpEnv.indexOf('dist') !== -1;
const isLive = gulpEnv.indexOf('live') !== -1;
env.needsSourcemaps = isLive;
env.needsLivereload = isLive;
env.needsMinification = isDist;
//
// Source files and folders
// --------------------
src.libraryFiles = [
'src/**/*.js',
'!src/webapp/**/*.js'
];
src.root = 'src/webapp';
src.htmlIndex = `${src.root}/report.html`;
src.stylesMain = `${src.root}/report.css`;
src.scriptsMain = `${src.root}/report.js`;
//
// Destination files and folders
// --------------------
dest.root = 'dist';