-
Notifications
You must be signed in to change notification settings - Fork 28
/
gulpfile.js
45 lines (41 loc) · 1.29 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
var gulp = require('gulp');
var jasmine = require('gulp-jasmine');
var tsc = require('gulp-tsc');
gulp.task('build_tests', function () {
gulp.src('./spec/*.ts').pipe(tsc({
"module": "commonjs",
"noImplicitAny": true,
"preserveConstEnums": true,
"target": "es5",
"declaration": true,
"listFiles": true,
"diagnostics": true,
"noResolve": false,
"suppressImplicitAnyIndexErrors": true,
"noEmitOnError": true,
"version": "1.5.3",
"experimentalDecorators":true,
"emitDecoratorMetadata":true
})).pipe(gulp.dest('./spec'));
});
gulp.task('test', ['build_tests'], function () {
gulp.src(['./spec/**/*_spec.js'])
.pipe(jasmine({verbose: false, includeStackTrace: true}));
});
gulp.task('build', function () {
gulp.src('./src/**/*.ts').pipe(tsc({
"module": "commonjs",
"noImplicitAny": true,
"preserveConstEnums": true,
"target": "es5",
"declaration": true,
"listFiles": true,
"diagnostics": true,
"noResolve": false,
"suppressImplicitAnyIndexErrors": true,
"noEmitOnError": true,
"version": "1.7.3",
"emitDecoratorMetadata":true,
"experimentalDecorators":true
})).pipe(gulp.dest('./dist'));
});