-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgulp.config.js
55 lines (48 loc) · 1.27 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
'use strict';
var src = './src/';
var dest = './build/';
var release = './release';
var conf = {};
conf.src = {
base: src,
ts: {
webkit: src + 'webkit/**/*.ts',
node: src + 'node/**/*.ts',
},
js: src + 'app/**/*.js',
html: src + 'static/**/*.html',
css: src + 'static/**/*.css',
nwjs: {
manifest: src + 'static/package.json'
},
libs: [
'node_modules/angular2/node_modules/traceur/bin/traceur-runtime.js',
'node_modules/angular2/bundles/angular2.js',
'node_modules/requirejs/require.js',
// 'node_modules/systemjs/dist/system.js',
//'node_modules/systemjs/dist/system-csp-production.js',
'node_modules/es6-promise/dist/es6-promise.js'
],
typings: 'node_modules/angular2/bundles/typings/angular2/angular2.d.ts'
};
conf.dest = {
base: dest,
all: dest + '**',
webkit: dest + 'webkit/',
node: dest + 'node/',
libs: dest + 'libs/',
styles: dest + 'styles/'
};
conf.release = {
base: release
};
conf.typings = './tools/typings/';
conf.dtsLibs = conf.typings + 'lib/**/*.ts';
conf.dtsApp = conf.typings + 'App.d.ts';
conf.nwBuild = {
version: '0.12.3',
platforms: ['win32', 'win64'],
files: conf.dest.all,
buildDir: conf.release.base
};
module.exports = conf;