chore(build): fix check-format

This commit is contained in:
Alex Eagle 2015-04-11 12:40:05 -07:00
parent e18920884e
commit 7b790a3369
5 changed files with 22 additions and 18 deletions

View File

@ -59,10 +59,10 @@ var typescriptTree = new TypescriptCompiler(modulesTree, {
target: 'ES5',
sourceMap: true,
mapRoot: '', /* force sourcemaps to use relative path */
module: /*system.js*/'commonjs',
module: /*system.js*/ 'commonjs',
allowNonTsExtensions: false,
typescript: require('typescript'),
//declarationFiles: true,
// declarationFiles: true,
noEmitOnError: true,
outDir: 'angular2'
});

View File

@ -23,7 +23,8 @@ var es6DevTree = new TraceurCompiler(modulesTree, '.es6', '.map', {
});
// Call Traceur again to lower the ES6 build tree to ES5
var es5DevTree = new TraceurCompiler(es6DevTree, '.js', '.js.map', {modules: 'instantiate', sourceMaps: true});
var es5DevTree =
new TraceurCompiler(es6DevTree, '.js', '.js.map', {modules: 'instantiate', sourceMaps: true});
// Now we add a few more files to the es6 tree that Traceur should not see
['angular2', 'benchmarks', 'benchmarks_external', 'benchpress', 'examples', 'rtts_assert'].forEach(

View File

@ -23,7 +23,8 @@ var es6ProdTree = new TraceurCompiler(modulesTree, '.es6', '.map', {
});
// Call Traceur again to lower the ES6 build tree to ES5
var es5ProdTree = new TraceurCompiler(es6ProdTree, '.js', '.js.map', {modules: 'instantiate', sourceMaps: true});
var es5ProdTree =
new TraceurCompiler(es6ProdTree, '.js', '.js.map', {modules: 'instantiate', sourceMaps: true});
// Now we add a few more files to the es6 tree that Traceur should not see
['angular2', 'benchmarks', 'benchmarks_external', 'benchpress', 'examples', 'rtts_assert'].forEach(
@ -100,4 +101,5 @@ htmlTree = mergeTrees([htmlTree, scripts, polymer, css]);
es5ProdTree = mergeTrees([es5ProdTree, htmlTree]);
module.exports = mergeTrees([stew.mv(es6ProdTree, 'js/prod/es6'), stew.mv(es5ProdTree, 'js/prod/es5')]);
module.exports =
mergeTrees([stew.mv(es6ProdTree, 'js/prod/es6'), stew.mv(es5ProdTree, 'js/prod/es5')]);

View File

@ -6,7 +6,8 @@ declare var assert: any;
declare var global: Window;
type int = number;
interface List<T> extends Array<T> {}
interface List<T> extends Array<T> {
}
interface Window {
Object: typeof Object;

View File

@ -9,7 +9,7 @@ interface String {
* same as the corresponding elements of this object (converted to a String) starting at
* position. Otherwise returns false.
*/
startsWith(searchString: string, position ?: number): boolean;
startsWith(searchString: string, position?: number): boolean;
}
interface NumberConstructor {
@ -29,14 +29,14 @@ interface Array<T> {
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: T, start ?: number, end ?: number): T[];
fill(value: T, start?: number, end?: number): T[];
}
// Copied from lib.dom.d.ts and modified
interface Map<K, V> {
clear(): void;
delete (key: K): boolean;
forEach(callbackfn: (value: V, index: K, map: Map<K, V>) => void, thisArg ?: any): void;
forEach(callbackfn: (value: V, index: K, map: Map<K, V>) => void, thisArg?: any): void;
get(key: K): V;
has(key: K): boolean;
set(key: K, value: V): Map<K, V>;
@ -54,7 +54,7 @@ interface Set<T> {
add(value: T): Set<T>;
clear(): void;
delete (value: T): boolean;
forEach(callbackfn: (value: T, index: T, set: Set<T>) => void, thisArg ?: any): void;
forEach(callbackfn: (value: T, index: T, set: Set<T>) => void, thisArg?: any): void;
has(value: T): boolean;
size: number;
}