-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgulpfile.config.js
executable file
·67 lines (60 loc) · 2.24 KB
/
gulpfile.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
var _ = require('lodash');
var GulpConfig = (function () {
function gulpConfig() {
var APP = './app';
var LESS = './less';
var PUBLIC = './public';
var ASSETS = PUBLIC + '/assets';
this.source = PUBLIC + '/';
this.sourceApp = APP + '/';
this.tsOutputPath = ASSETS;
this.allJavaScript = [ASSETS + '/**/*.js'];
this.allTypeScript = [
APP + '/app.module.ts',
APP + '/app.config.ts',
APP + '/*.ts',
APP + '/controllers/*.ts',
APP + '/services/*.ts',
APP + '/contracts/*.ts',
APP + '/directives/*.ts'
];
var comp = this.sourceApp + "components/";
var mod = './node_modules/';
this.JS = {
vendor: [
comp + 'jquery/dist/jquery.min.js',
comp + 'bootstrap/js/bootstrap.min.js',
comp + 'angular/angular.min.js',
comp + 'angular-json-tree/build/angular-json-tree.min.js',
comp + 'angular-bootstrap/ui-bootstrap.min.js',
comp + 'angular-bootstrap/ui-bootstrap-tpls.min.js',
comp + 'angular-route/angular-route.min.js',
comp + 'angular-toastr/dist/angular-toastr.min.js',
comp + 'angular-toastr/dist/angular-toastr.tpls.min.js',
mod + 'js-yaml/dist/js-yaml.min.js',
comp + 'lodash/lodash.min.js'
//comp + 'xml2js/lib/xml2js.js'
]
};
var cssVendor = [
comp + 'bootstrap/dist/css/bootstrap.min.css',
comp + 'bootstrap/dist/css/bootstrap-theme.min.css',
comp + 'angular-toastr/dist/angular-toastr.min.css',
comp + 'angular-json-tree/build/angular-json-tree.css'
];
this.CSS = {
output: ASSETS,
input: [
LESS + '/main.less'
],
watch: [LESS + '/*.less'].concat(cssVendor),
main_file: 'style.css',
vendor: cssVendor,
vendor_file: 'vendor.css'
};
this.typings = './typings/';
this.libraryTypeScriptDefinitions = './typings/**/*.ts';
}
return gulpConfig;
})();
module.exports = GulpConfig;