Remove extra dependency + build smaller tsc.js into lkg
This commit is contained in:
parent
88cf310dee
commit
de82c54e6b
|
@ -113,14 +113,14 @@ task(TaskNames.local, [
|
|||
const RunTestsPrereqs = [TaskNames.lib, Paths.servicesDefinitionFile, Paths.tsserverLibraryDefinitionFile];
|
||||
desc("Runs all the tests in parallel using the built run.js file. Optional arguments are: t[ests]=category1|category2|... d[ebug]=true.");
|
||||
task(TaskNames.runtestsParallel, RunTestsPrereqs, function () {
|
||||
tsbuild([ConfigFileFor.runjs, ConfigFileFor.lint], true, () => {
|
||||
tsbuild([ConfigFileFor.runjs], true, () => {
|
||||
runConsoleTests("min", /*parallel*/ true);
|
||||
});
|
||||
}, { async: true });
|
||||
|
||||
desc("Runs all the tests in parallel using the built run.js file. Optional arguments are: t[ests]=category1|category2|... d[ebug]=true.");
|
||||
task(TaskNames.runtests, RunTestsPrereqs, function () {
|
||||
tsbuild([ConfigFileFor.runjs, ConfigFileFor.lint], true, () => {
|
||||
tsbuild([ConfigFileFor.runjs], true, () => {
|
||||
runConsoleTests('mocha-fivemat-progress-reporter', /*runInParallel*/ false);
|
||||
});
|
||||
}, { async: true });
|
||||
|
|
39824
lib/tsc.js
39824
lib/tsc.js
File diff suppressed because one or more lines are too long
|
@ -6,8 +6,9 @@ import path = require('path');
|
|||
import removeInternal = require('remove-internal');
|
||||
import glob = require('glob');
|
||||
|
||||
const source = path.join(__dirname, "../built/local");
|
||||
const dest = path.join(__dirname, "../lib");
|
||||
const root = path.join(__dirname, "..");
|
||||
const source = path.join(root, "built/local");
|
||||
const dest = path.join(root, "lib");
|
||||
const copyright = fs.readFileSync(path.join(__dirname, "../CopyrightNotice.txt"), "utf-8");
|
||||
|
||||
async function produceLKG() {
|
||||
|
@ -16,6 +17,7 @@ async function produceLKG() {
|
|||
await copyLocalizedDiagnostics();
|
||||
await buildProtocol();
|
||||
await copyScriptOutputs();
|
||||
await buildTsc();
|
||||
await copyDeclarationOutputs();
|
||||
await writeGitAttributes();
|
||||
}
|
||||
|
@ -57,6 +59,10 @@ async function copyScriptOutputs() {
|
|||
await copyWithCopyright("typingsInstaller.js");
|
||||
}
|
||||
|
||||
async function buildTsc() {
|
||||
await exec(path.join(source, "tsc.js"), [`-b -f ${path.join(root, "src/tsc/tsconfig.release.json")}`]);
|
||||
}
|
||||
|
||||
async function copyDeclarationOutputs() {
|
||||
await copyWithCopyright("typescript.d.ts");
|
||||
await copyWithCopyright("typescriptServices.d.ts");
|
||||
|
|
8
src/compiler/tsconfig.release.json
Normal file
8
src/compiler/tsconfig.release.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outFile": "../../built/local/compiler.release.js",
|
||||
"removeComments": true,
|
||||
"preserveConstEnums": false
|
||||
}
|
||||
}
|
17
src/tsc/tsconfig.release.json
Normal file
17
src/tsc/tsconfig.release.json
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"extends": "../tsconfig-base",
|
||||
"compilerOptions": {
|
||||
"outFile": "../../lib/tsc.js",
|
||||
"stripInternal": true,
|
||||
"preserveConstEnums": false,
|
||||
"declaration": false,
|
||||
"declarationMap": false,
|
||||
"composite": false
|
||||
},
|
||||
"files": [
|
||||
"tsc.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../compiler/tsconfig.release.json", "prepend": true }
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue