-
Notifications
You must be signed in to change notification settings - Fork 34
/
gulp.config.js
44 lines (39 loc) · 951 Bytes
/
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
var destServer = './src/';
var srcServer = './src/',
srcPublic = './src/public/',
clientApp = srcPublic + 'app/';
var config = {
tsCompiler : { module: 'commonjs'},
tsServerSrc : [
srcServer + '**/*.ts',
'!'+srcPublic+'**/*.ts'
],
jsServerSrc : [
srcServer + '**/*.js',
'!'+srcPublic+'**/*.js'
],
tsPublicSrc : [
clientApp + '**/*.ts',
'!'+clientApp + 'game/**/*.ts',
'!'+clientApp + 'typings**/*.ts'
],
tsGameSrc : [
clientApp + 'game/**/*.ts',
'!'+clientApp + 'typings**/*.ts',
'!'+clientApp + 'game/tests/**/*.ts'
],
publicJsInject : [
clientApp + '**/*.js'
],
mainFile : destServer + 'index.js',
destServer : destServer,
destPublic : srcPublic,
srcServer : srcServer,
clientApp : clientApp,
gameTestsSrc: clientApp+ 'game/tests/**/*.ts',
browserSync: [
'public/**/*.*',
"!" + 'public/app/game/tests/**/*.*'
]
};
module.exports = config;