-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulp.config.js
57 lines (56 loc) · 1.69 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
"use strict";
module.exports = function () {
var config = {
appRoot: "app",
appScripts: "app/**/*.ts",
css: {
files: [
"node_modules/bootstrap/**/*.min.css",
"node_modules/dc/*.min.css",
"dist/**/adap-charts.css"
]
},
js: {
files: [
"node_modules/*/release/*.min.js",
"node_modules/*/build/*.min.js",
"node_modules/angular-nvd3/dist/*.min.js",
"node_modules/bootstrap/dist/*.min.js",
"node_modules/jquery/dist/*.min.js",
"dist/*.js"
]
},
html: {
sourceFiles: "lib/**/*.html",
index: "index.html",
templates: "lib/**/*.html",
minifyConfig: {
quotes: true,
spare: true,
empty: true,
cdata: true
},
destPath: "dist"
},
// sourceFiles for tslint
lintFiles: ["lib/**/*.ts", "app/**/*.ts", "test/**/*Spec.ts"],
testFiles: ["typings/globals/**/index.d.ts", "test/**/*.ts"],
paths: {
appRoot: "app",
html: "lib/**/*.html",
index: "index.html",
less: "lib/**/*.less",
ts: "lib/**/*.ts",
dest: "dist",
test: "test",
typings: "dist/typings"
},
ts: {
moduleFile: "app.module.ts",
definitionFiles: "dist/typings/*.d.ts",
sourceFiles: "dist/*.ts"
},
watchDelay: 1000
};
return config;
}