mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Get codebase building pre bundling
This isn't totally complete, but enough to get everything building and tests running manually. The next commit will make the build work fully.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
/* Generated file to emulate the ts namespace. */
|
||||
|
||||
export * from "../../compiler/_namespaces/ts";
|
||||
export * from "../../jsTyping/_namespaces/ts";
|
||||
export * from "../../services/_namespaces/ts";
|
||||
export * from "../../deprecatedCompat/_namespaces/ts";
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"extends": "../tsconfig-base",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../built/local/typescript"
|
||||
},
|
||||
"references": [
|
||||
{ "path": "../compiler" },
|
||||
{ "path": "../jsTyping" },
|
||||
{ "path": "../services" },
|
||||
{ "path": "../deprecatedCompat" }
|
||||
],
|
||||
"include": ["**/*"]
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import { Debug, LogLevel } from "./_namespaces/ts";
|
||||
|
||||
// TODO(jakebailey): replace const enum with enum in d.ts
|
||||
|
||||
// enable deprecation logging
|
||||
declare const console: any;
|
||||
if (typeof console !== "undefined") {
|
||||
Debug.loggingHost = {
|
||||
log(level, s) {
|
||||
switch (level) {
|
||||
case LogLevel.Error: return console.error(s);
|
||||
case LogLevel.Warning: return console.warn(s);
|
||||
case LogLevel.Info: return console.log(s);
|
||||
case LogLevel.Verbose: return console.log(s);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export = ts;
|
||||
Reference in New Issue
Block a user