-
Notifications
You must be signed in to change notification settings - Fork 2
/
gulp.config.js
70 lines (62 loc) · 1.92 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
module.exports = function () {
var config = {
tmpDir: './.tmp/',
// all the JavaScript files for this project
alljs: './src/**/*.js',
srcJS: './src/js/*.js',
srcCSS: './src/css/*.css',
libCss: [
'./node_modules/bootstrap-touchspin/src/jquery.bootstrap-touchspin.css',
'./node_modules/bootstrap-select/dist/css/bootstrap-select.css'
],
libsOrderJs:[
'./node_modules/loglevel/dist/loglevel.js',
'./node_modules/jquery/dist/jquery.js',
'./node_modules/bootstrap/dist/js/bootstrap.js',
'./node_modules/bootstrap-select/dist/js/bootstrap-select.js',
'./node_modules/bootstrap-touchspin/src/jquery.bootstrap-touchspin.js',
],
libsJs:[
'./node_modules/lodash/lodash.js',
'./node_modules/d3/d3.js',
'./node_modules/d3.promise/dist/d3.promise.js',
'./node_modules/labella/dist/labella.js',
'./node_modules/file-saver/FileSaver.js',
'./node_modules/simple-statistics/dist/simple_statistics.js',
'./node_modules/saveSvgAsPng/saveSvgAsPng.js',
'./node_modules/es5-shim/es5-shim.js',
'./node_modules/es6-shim/es6-shim.js',
],
// all the source files
less: ['./src/less/*.less', '!./src/less/variables.less'],
srcDir: './src/',
js: './src/js/*.js',
svg: './assets/svg/*.svg',
// the development output
srcDir: './.tmp/',
allOutputFiles: './.tmp/**/*',
distHtml: './src/index.html',
devHtml: './src/index-dev.html',
outputCssDir: './.tmp/css/',
outputJsDir: './.tmp/js/',
outputLib: './.tmp/lib/',
outputSvg: './.tmp/assets/*.svg',
testDir: './test',
testDataDir: './test/data',
xmlFiles: './test/data/**/*.xml',
// production output
build: './dist',
buildJs:'./dist/js',
buildCss:'./dist/css',
svgSpriteConfig: {
mode: {
defs: {
dest: '.',
sprite: 'sprite-defs.svg',
inline: true,
},
},
},
};
return config;
};