-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.ts
48 lines (41 loc) · 1.04 KB
/
gulpfile.ts
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
///<reference path="typings/main.d.ts"/>
import gulp = require('gulp');
var bower = require('gulp-bower');
import tsc = require('gulp-typescript');
var typings = require('gulp-typings');
import runSequence = require('run-sequence');
gulp.task('typings', () => {
gulp.src('./typings.json')
.pipe(typings());
});
gulp.task('tsc-server', () => {
gulp.src('./scripts/**/*.ts')
.pipe(tsc({
module: "commonjs",
}))
.pipe(gulp.dest('./scripts/'));
});
gulp.task('tsc-browser-shared', () => {
gulp.src('./scripts/shared/**/*.ts')
.pipe(tsc({
module: "amd"
}))
.pipe(gulp.dest('./public/scripts/shared/'));
});
gulp.task('tsc-browser', () => {
gulp.src('./public/scripts/**/*.ts')
.pipe(tsc({
module: "amd"
}))
.pipe(gulp.dest('./public/scripts/'));
});
gulp.task('bower', () => {
bower();
});
gulp.task('default', () => runSequence(
'typings',
'tsc-server',
'tsc-browser-shared',
'tsc-browser',
'bower'
));