chore(ts2dart): update ts2dart to 0.7.24

This commit is contained in:
Alex Eagle 2016-02-12 14:21:15 -08:00
parent 3478d5d450
commit ae275fa4e4
7 changed files with 24 additions and 12 deletions

View File

@ -33,7 +33,7 @@ class PromiseStrategy {
var _promiseStrategy = new PromiseStrategy();
var _observableStrategy = new ObservableStrategy();
var __unused: Promise<any>; // avoid unused import when Promise union types are erased
/**
* The `async` pipe subscribes to an Observable or Promise and returns the latest value it has

View File

@ -17,6 +17,8 @@ import {MockEventEmitter} from './mock_event_emitter';
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
import {NgZone} from 'angular2/src/core/zone/ng_zone';
var __unused: Promise<any>; // avoid unused import when Promise union types are erased
/**
* Returns two MessageBus instances that are attached to each other.
* Such that whatever goes into one's sink comes out the others source.

View File

@ -1886,6 +1886,9 @@
"dargs": {
"version": "4.0.1"
},
"dart-style": {
"version": "0.2.6"
},
"dart2jsaas": {
"version": "0.0.16",
"dependencies": {
@ -5353,7 +5356,7 @@
}
},
"ts2dart": {
"version": "0.7.22",
"version": "0.7.24",
"dependencies": {
"source-map": {
"version": "0.4.4"
@ -5836,5 +5839,5 @@
}
},
"name": "angular-srcs",
"version": "2.0.0-beta.5"
"version": "2.0.0-beta.6"
}

12
npm-shrinkwrap.json generated
View File

@ -1,6 +1,6 @@
{
"name": "angular-srcs",
"version": "2.0.0-beta.5",
"version": "2.0.0-beta.6",
"dependencies": {
"abbrev": {
"version": "1.0.7",
@ -2960,6 +2960,11 @@
"from": "dargs@>=4.0.1 <5.0.0",
"resolved": "https://registry.npmjs.org/dargs/-/dargs-4.0.1.tgz"
},
"dart-style": {
"version": "0.2.6",
"from": "dart-style@>=0.2.6 <0.3.0",
"resolved": "https://registry.npmjs.org/dart-style/-/dart-style-0.2.6.tgz"
},
"dart2jsaas": {
"version": "0.0.16",
"from": "dart2jsaas@>=0.0.16 <0.0.17",
@ -8530,9 +8535,8 @@
}
},
"ts2dart": {
"version": "0.7.22",
"from": "https://registry.npmjs.org/ts2dart/-/ts2dart-0.7.22.tgz",
"resolved": "https://registry.npmjs.org/ts2dart/-/ts2dart-0.7.22.tgz",
"version": "0.7.24",
"from": "ts2dart@0.7.24",
"dependencies": {
"source-map": {
"version": "0.4.4",

View File

@ -2,7 +2,6 @@ var broccoli = require('broccoli');
var fs = require('fs');
var makeBrowserTree = require('./trees/browser_tree');
var makeNodeTree = require('./trees/node_tree');
var makeDartTree = require('./trees/dart_tree');
var path = require('path');
var printSlowTrees = require('broccoli-slow-trees');
var Q = require('q');
@ -111,6 +110,8 @@ export class AngularBuilder {
logs: this.options.logs,
projects: projects
};
// Workaround for https://github.com/dart-lang/dart_style/issues/493
var makeDartTree = require('./trees/dart_tree');
let tree = makeDartTree(options);
return new broccoli.Builder(tree);
}

View File

@ -4,17 +4,18 @@
import fs = require('fs');
import fse = require('fs-extra');
import path = require('path');
import * as ts2dart from 'ts2dart';
import {wrapDiffingPlugin, DiffingBroccoliPlugin, DiffResult} from './diffing-broccoli-plugin';
class TSToDartTranspiler implements DiffingBroccoliPlugin {
static includeExtensions = ['.ts'];
private transpiler: ts2dart.Transpiler;
private transpiler: any /*ts2dart.Transpiler*/;
constructor(public inputPath: string, public cachePath: string,
public options: ts2dart.TranspilerOptions) {
public options: any /*ts2dart.TranspilerOptions*/) {
options.basePath = inputPath;
// Workaround for https://github.com/dart-lang/dart_style/issues/493
var ts2dart = require('ts2dart');
this.transpiler = new ts2dart.Transpiler(options);
}

View File

@ -5,11 +5,12 @@ var insert = require('gulp-insert');
var fs = require('fs-extra');
var browserify = require('browserify');
var path = require('path');
var Builder = require('systemjs-builder');
module.exports.bundle = function(buildConfig, moduleName, outputFile, outputConfig,
sfx) {
var sfx = sfx || false;
// Workaround for https://github.com/dart-lang/dart_style/issues/493
var Builder = require('systemjs-builder');
var builder = new Builder();
builder.config(buildConfig);
if (sfx) {