and so it begins...

Summary: This is the basic setup for TypeScript support in Flipper and makes sure our build system can handle `.ts(x)` files. Support for flow is still fully working, so we can land this and continue with the TS migration.

Reviewed By: jknoxville

Differential Revision: D15920150

fbshipit-source-id: d5a7f22fe824d1c1904105bbf738767d735cc0f1
This commit is contained in:
Daniel Büchele
2019-07-10 08:42:00 -07:00
committed by Facebook Github Bot
parent cf1347d2e3
commit ee5091c742
4 changed files with 76 additions and 4 deletions

17
tsconfig.json Normal file
View File

@@ -0,0 +1,17 @@
{
"compilerOptions": {
"module": "system",
"removeComments": true,
"preserveConstEnums": true,
"outFile": "../../built/local/tsc.js",
"sourceMap": true,
"jsx": "react",
"moduleResolution": "node",
"baseUrl": ".",
"paths": {
"flipper": ["./src/index.js"]
}
},
"include": ["src/**/*"],
"exclude": ["node_modules", "**/*.spec.ts"]
}