-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulp.config.js
32 lines (30 loc) · 965 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
'use strict';
var path = require('path');
var serverPath = path.join(__dirname, '/server');
var devPath = path.join(__dirname, '/client');
var typingsPath = path.join(__dirname, '/typings');
var buildPath = path.join(__dirname, '/dist');
module.exports = {
main: path.join(devPath, '/app/main.ts'),
devPath: devPath,
serverPath: serverPath,
typingsPath: typingsPath,
buildPath: buildPath,
gulpFiles: path.join(__dirname, 'gulp') + '/*.js',
serverFiles: serverPath + '/**/*.js',
tsFiles: devPath + '/**/*.ts',
tsdFiles: typingsPath + 'main/**/*.js',
tsIgnore: '!' + devPath + '/systemjs.config.ts', // ignore ng2 system generated formatting issues
builtJS: path.join(devPath, '/app/**/*.js'),
clientImg: path.join(devPath, '/img') + '/**/*.*',
nodemon: {
script: 'server/server.js',
delayTime: 1,
watch: ['server/**/*.js'],
env: {
PORT: 3000,
NODE_ENV: 'dist'
}
},
htmlFiles: devPath + '/**/*.html'
};