fix(build): fix paths in `test.typings` task
This commit is contained in:
parent
19a9dc67bd
commit
1c8a58963c
13
gulpfile.js
13
gulpfile.js
|
@ -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')}));
|
||||
});
|
||||
|
||||
// -----------------
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in New Issue