chore(typescript 1.6 upgrade): fix build.tools
This commit is contained in:
committed by
Victor Savkin
parent
1cf45757cd
commit
2ee32fb02c
@@ -1,10 +1,9 @@
|
||||
/// <reference path="../typings/node/node.d.ts" />
|
||||
/// <reference path="../../node_modules/typescript/bin/typescript.d.ts" />
|
||||
/// <reference path="../../node_modules/typescript/lib/typescript.d.ts" />
|
||||
|
||||
import fs = require('fs');
|
||||
import fse = require('fs-extra');
|
||||
import path = require('path');
|
||||
import ts = require('typescript');
|
||||
import {wrapDiffingPlugin, DiffingBroccoliPlugin, DiffResult} from './diffing-broccoli-plugin';
|
||||
|
||||
|
||||
@@ -19,10 +18,10 @@ const FS_OPTS = {
|
||||
* Broccoli plugin that implements incremental Typescript compiler.
|
||||
*
|
||||
* It instantiates a typescript compiler instance that keeps all the state about the project and
|
||||
* can reemit only the files that actually changed.
|
||||
* can re-emit only the files that actually changed.
|
||||
*
|
||||
* Limitations: only files that map directly to the changed source file via naming conventions are
|
||||
* reemited. This primarily affects code that uses `const enum`s, because changing the enum value
|
||||
* re-emitted. This primarily affects code that uses `const enum`s, because changing the enum value
|
||||
* requires global emit, which can affect many files.
|
||||
*/
|
||||
class DiffingTSCompiler implements DiffingBroccoliPlugin {
|
||||
|
||||
Vendored
+6
-4
@@ -1,6 +1,8 @@
|
||||
/// <reference path="../typings/es6-promise/es6-promise.d.ts" />
|
||||
|
||||
|
||||
declare class Writer { write(readTree: (tree) => Promise<string>, destDir: string): Promise<any>; }
|
||||
|
||||
export = Writer;
|
||||
declare module "broccoli-writer" {
|
||||
class Writer {
|
||||
write(readTree:(tree) => Promise<string>, destDir:string):Promise<any>;
|
||||
}
|
||||
export = Writer;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
/// <reference path="../typings/node/node.d.ts" />
|
||||
/// <reference path="../typings/fs-extra/fs-extra.d.ts" />
|
||||
/// <reference path="./broccoli-writer.d.ts" />
|
||||
|
||||
import Writer = require('broccoli-writer');
|
||||
import fs = require('fs');
|
||||
import fsx = require('fs-extra');
|
||||
|
||||
Vendored
+13
-10
@@ -1,15 +1,18 @@
|
||||
// TODO(martinprobst): This is a hand-written declarations file. Replace with an automatically
|
||||
// generated one when TypeScript has a strategy to distribute TS source via npm.
|
||||
|
||||
export interface TranspilerOptions {
|
||||
failFast?: boolean;
|
||||
generateLibraryName?: boolean;
|
||||
generateSourceMap?: boolean;
|
||||
basePath?: string;
|
||||
translateBuiltins?: boolean;
|
||||
}
|
||||
declare module "ts2dart" {
|
||||
export interface TranspilerOptions {
|
||||
failFast?: boolean;
|
||||
generateLibraryName?: boolean;
|
||||
generateSourceMap?: boolean;
|
||||
basePath?: string;
|
||||
translateBuiltins?: boolean;
|
||||
}
|
||||
|
||||
export class Transpiler {
|
||||
constructor(options: TranspilerOptions);
|
||||
transpile(fileNames: string[], outdir?: string);
|
||||
export class Transpiler {
|
||||
constructor(options:TranspilerOptions);
|
||||
|
||||
transpile(fileNames:string[], outdir?:string);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es5",
|
||||
"noImplicitAny": false,
|
||||
"outDir": "../dist/tools",
|
||||
"rootDir": ".",
|
||||
"sourceMap": false
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
||||
+2
-2
@@ -6,10 +6,10 @@
|
||||
"bundle": "typings/tsd.d.ts",
|
||||
"installed": {
|
||||
"fs-extra/fs-extra.d.ts": {
|
||||
"commit": "612ac88c26d767ca586908da31a4675867d8ee16"
|
||||
"commit": "fa52db59121913b35e9641a0f73ccc3ffba58840"
|
||||
},
|
||||
"node/node.d.ts": {
|
||||
"commit": "d5f92f93bdb49f332fa662ff1d0cc8700f02e4dc"
|
||||
"commit": "285e6b692a5898ccc1dc19475187429deafb69d7"
|
||||
},
|
||||
"es6-promise/es6-promise.d.ts": {
|
||||
"commit": "d5f92f93bdb49f332fa662ff1d0cc8700f02e4dc"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/// <reference path="../../node_modules/typescript/bin/typescriptServices.d.ts" />
|
||||
/// <reference path="../../node_modules/typescript/lib/typescriptServices.d.ts" />
|
||||
/// <reference path="../../node_modules/gulp-tslint/node_modules/tslint/lib/tslint.d.ts" />
|
||||
|
||||
export class Rule extends Lint.Rules.AbstractRule {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/// <reference path="../../node_modules/typescript/bin/typescriptServices.d.ts" />
|
||||
/// <reference path="../../node_modules/typescript/lib/typescriptServices.d.ts" />
|
||||
/// <reference path="../../node_modules/gulp-tslint/node_modules/tslint/lib/tslint.d.ts" />
|
||||
|
||||
export class Rule extends Lint.Rules.AbstractRule {
|
||||
|
||||
Reference in New Issue
Block a user