-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
executable file
·38 lines (37 loc) · 1.07 KB
/
gulpfile.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
var fs = require('fs'),
typings = require('bower-typings'),
allTypings = typings(),
name = 'ex',
meta = {
name: name,
ports: {
testsite: 7001,
stress: 7002
},
files: {
src: [
'typings/*.d.ts',
'src/_version.ts',
'src/polyfill/**/*.ts',
'src/**/*.ts',
'!src/**/*.es3.ts'
].concat(typings({includeSelf: false})),
es3src: [
'typings/*.d.ts',
'src/_version.ts',
'src/polyfill/**/*.ts',
'src/**/*.ts',
'!src/**/*.es5.ts'
].concat(typings({includeSelf: false})),
test: [
'typings/*.d.ts',
'test/**/*.ts',
'!test/lib/**/*.ts',
'dist/' + name + '.d.ts'
].concat(allTypings)
}
};
fs.readdirSync('./gulp')
.forEach(function (file) {
require('./gulp/' + file)(meta);
});