typescript
Advanced tools
Comparing version 1.6.0-dev.20150722.1 to 1.6.0-dev.20150723
@@ -989,3 +989,3 @@ /*! ***************************************************************************** | ||
*/ | ||
stringify(value: any, replacer: (key: string, value: any) => any, space: any): string; | ||
stringify(value: any, replacer: (key: string, value: any) => any, space: string | number): string; | ||
/** | ||
@@ -997,3 +997,3 @@ * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. | ||
*/ | ||
stringify(value: any, replacer: any[], space: any): string; | ||
stringify(value: any, replacer: any[], space: string | number): string; | ||
} | ||
@@ -1000,0 +1000,0 @@ /** |
@@ -116,3 +116,3 @@ // This file contains the build logic for the public repo | ||
var harnessSources = [ | ||
var harnessCoreSources = [ | ||
"harness.ts", | ||
@@ -133,3 +133,5 @@ "sourceMapRecorder.ts", | ||
return path.join(harnessDirectory, f); | ||
}).concat([ | ||
}); | ||
var harnessSources = harnessCoreSources.concat([ | ||
"incrementalParser.ts", | ||
@@ -141,2 +143,3 @@ "jsDocParsing.ts", | ||
"services/patternMatcher.ts", | ||
"session.ts", | ||
"versionCache.ts", | ||
@@ -342,6 +345,6 @@ "convertToBase64.ts", | ||
ex.run(); | ||
}, {async: true}) | ||
}, {async: true}); | ||
desc("Generates a diagnostic file in TypeScript based on an input JSON file"); | ||
task("generate-diagnostics", [diagnosticInfoMapTs]) | ||
task("generate-diagnostics", [diagnosticInfoMapTs]); | ||
@@ -353,3 +356,3 @@ | ||
var packageJson = "package.json"; | ||
var programTs = path.join(compilerDirectory, "program.ts") | ||
var programTs = path.join(compilerDirectory, "program.ts"); | ||
@@ -484,7 +487,7 @@ file(configureNightlyTs); | ||
}); | ||
}, {async: true}) | ||
}, {async: true}); | ||
desc("Generates a Markdown version of the Language Specification"); | ||
task("generate-spec", [specMd]) | ||
task("generate-spec", [specMd]); | ||
@@ -593,4 +596,2 @@ | ||
task("runtests", ["tests", builtLocalDirectory], function() { | ||
var previous | ||
cleanTestDirs(); | ||
@@ -616,3 +617,3 @@ host = "mocha" | ||
tests = tests ? ' -g ' + tests : ''; | ||
reporter = process.env.reporter || process.env.r || 'dot'; | ||
reporter = process.env.reporter || process.env.r || 'mocha-fivemat-progress-reporter'; | ||
// timeout normally isn't necessary but Travis-CI has been timing out on compiler baselines occasionally | ||
@@ -625,3 +626,3 @@ // default timeout is 2sec which really should be enough, but maybe we just need a small amount longer | ||
desc("Generates code coverage data via instanbul") | ||
desc("Generates code coverage data via instanbul"); | ||
task("generate-code-coverage", ["tests", builtLocalDirectory], function () { | ||
@@ -669,3 +670,3 @@ var cmd = 'istanbul cover node_modules/mocha/bin/_mocha -- -R min -t ' + testTimeout + ' ' + run; | ||
if (!program) { | ||
fail("Add the 'DIFF' environment variable to the path of the program you want to use.") | ||
fail("Add the 'DIFF' environment variable to the path of the program you want to use."); | ||
} | ||
@@ -679,3 +680,3 @@ return program; | ||
var cmd = '"' + getDiffTool() + '" ' + refBaseline + ' ' + localBaseline; | ||
console.log(cmd) | ||
console.log(cmd); | ||
exec(cmd); | ||
@@ -687,3 +688,3 @@ }, {async: true}); | ||
var cmd = '"' + getDiffTool() + '" ' + refRwcBaseline + ' ' + localRwcBaseline; | ||
console.log(cmd) | ||
console.log(cmd); | ||
exec(cmd); | ||
@@ -785,10 +786,11 @@ }, {async: true}); | ||
task("lint", [], function() { | ||
for(var i in compilerSources) { | ||
var f = compilerSources[i]; | ||
function success(f) { return function() { console.log('SUCCESS: No linter errors in ' + f + '\n'); }}; | ||
function failure(f) { return function() { console.log('FAILURE: Please fix linting errors in ' + f + '\n') }}; | ||
var lintTargets = compilerSources.concat(harnessCoreSources); | ||
for(var i in lintTargets) { | ||
var f = lintTargets[i]; | ||
var cmd = 'tslint -f ' + f; | ||
exec(cmd, | ||
function() { console.log('SUCCESS: No linter errors'); }, | ||
function() { console.log('FAILURE: Please fix linting errors in ' + f + '\n'); | ||
}); | ||
exec(cmd, success(f), failure(f)); | ||
} | ||
}, { async: true }); |
@@ -5,3 +5,3 @@ { | ||
"homepage": "http://typescriptlang.org/", | ||
"version": "1.6.0-dev.20150722.1", | ||
"version": "1.6.0-dev.20150723", | ||
"license": "Apache-2.0", | ||
@@ -38,2 +38,3 @@ "description": "TypeScript is a language for application scale JavaScript development", | ||
"istanbul": "latest", | ||
"mocha-fivemat-progress-reporter": "latest", | ||
"tslint": "latest" | ||
@@ -40,0 +41,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
11870471
27
228864
7