-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathgulpfile.js
executable file
·72 lines (70 loc) · 2.23 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
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
71
72
var gulp = require('gulp'),
taskListing = require('gulp-task-listing'),
fs = require('fs'),
typings = require('bower-typings'),
name = 'fayde',
meta = {
name: name,
getSrc: () => {
return [
'typings/*.d.ts',
'src/_Version.ts',
'src/perf/**/*.ts',
'src/polyfill/**/*.ts',
'src/_Types.ts',
'src/**/*.ts'
].concat(typings({includeSelf: false}))
},
getScaffold: (name) => {
return meta.scaffolds.filter(function (scaffold) {
return scaffold.name === name;
})[0];
},
scaffolds: [
{
name: 'test',
symdirs: ['dist', 'src', 'themes'],
getSrc: () => {
return [
'typings/*.d.ts',
'test/**/*.ts',
'!test/lib/**/*.ts',
`dist/${name}.d.ts`
].concat(typings());
}
},
{
name: 'testsite',
ignore: 'lib/qunit',
port: 7001,
symdirs: ['dist', 'src', 'themes'],
getSrc: () => {
return [
'typings/*.d.ts',
'testsite/**/*.ts',
'!testsite/lib/**/*.ts',
`dist/${name}.d.ts`
].concat(typings());
}
},
{
name: 'stress',
ignore: 'lib/qunit',
port: 7002,
symdirs: ['dist', 'src', 'themes'],
getSrc: () => {
return [
'typings/*.d.ts',
'stress/**/*.ts',
'!stress/lib/**/*.ts',
`dist/${name}.d.ts`
].concat(typings());
}
}
]
};
gulp.task('help', taskListing);
fs.readdirSync('./gulp')
.forEach(function (file) {
require('./gulp/' + file)(meta);
});