Skip to content

Commit 841c354

Browse files
author
Wallace Breza
committed
Fixed gulp build / test
1 parent 6a18899 commit 841c354

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

gulpfile.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ gulp.task('test', 'Runs all tests', function (done) {
3333
runSequence(
3434
'clean',
3535
['compile:ts', 'compile:spec'],
36-
['test:js', 'copy', 'min:js'],
36+
['test:js', 'min:js'],
3737
done
3838
);
3939
});
@@ -97,9 +97,8 @@ gulp.task('compile:dts', 'Generate single dts file from modules', function (done
9797
gulp.task('compile:spec', 'Compile typescript for tests', function () {
9898
var tsProject = ts.createProject('tsconfig.json');
9999

100-
var tsResult = gulp.src(['./test/**/*.ts', './typings/browser/**/*.d.ts'])
101-
.pipe(ts(tsProject))
102-
;
100+
var tsResult = gulp.src(['./test/**/*.ts', './typings/globals/**/*.d.ts'])
101+
.pipe(ts(tsProject));
103102

104103
return tsResult.js.pipe(gulp.dest('./test'));
105104
});

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"test": "test"
99
},
1010
"scripts": {
11-
"test": "echo \"Error: no test specified\" && exit 1"
11+
"test": "gulp test",
12+
"preinstall": "npm install -g typings",
13+
"postinstall": "typings install"
1214
},
1315
"keywords": [
1416
"microsoft",

0 commit comments

Comments
 (0)