chore(ts2dart): update ts2dart to 0.7.24
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user