fix(build): fix paths in `test.typings` task

This commit is contained in:
Jeff Cross 2015-06-23 23:10:07 -07:00
parent 19a9dc67bd
commit 1c8a58963c
2 changed files with 5 additions and 10 deletions

View File

@ -571,7 +571,7 @@ gulp.task('post-test-checks', function(done) {
});
gulp.task('!pre.test.typings', [], function(done) {
gulp.task('!pre.test.typings', [], function() {
return gulp
.src([
'modules/angular2/typings/**/*'], {
@ -583,17 +583,12 @@ gulp.task('!pre.test.typings', [], function(done) {
// -----------------
// TODO: Use a version of TypeScript that matches what is used by DefinitelyTyped.
gulp.task('test.typings', ['!pre.test.typings'], function(done) {
var stream = gulp.src(['typings_spec/*.ts', 'dist/docs/typings/angular2/angular2.d.ts'])
gulp.task('test.typings', ['!pre.test.typings'], function() {
return gulp.src(['typing_spec/*.ts', 'dist/docs/typings/angular2/angular2.d.ts'])
.pipe(tsc({target: 'ES5', module: 'commonjs',
// Don't use the version of typescript that gulp-typescript depends on, we need 1.5
// see https://github.com/ivogabe/gulp-typescript#typescript-version
typescript: require('typescript')}))
.on('error', function(error) {
// nodejs doesn't propagate errors from the src stream into the final stream so we are
// forwarding the error into the final stream
stream.emit('error', error);
});
typescript: require('typescript')}));
});
// -----------------

View File

@ -1,4 +1,4 @@
///<reference path="../dist/docs/angular2.d.ts"/>
///<reference path="../dist/docs/typings/angular2/angular2.d.ts"/>
import {Component, bootstrap, View} from 'angular2/angular2'