chore(build): add a script to run the ts compiler and send the new files to closure compiler (#5894)

* chore(build): add a script to run the ts compiler and send the new files to closure compiler

* chore(build): clean up tsconfig

* chore: apply suggestions from code review

Cleanup from Chris

Co-authored-by: Christopher Allen <cpcallen+github@gmail.com>

Co-authored-by: Christopher Allen <cpcallen+github@gmail.com>
This commit is contained in:
Rachel Fenichel
2022-01-25 15:33:34 -08:00
committed by GitHub
parent efdb6549d9
commit f68043d3eb
5 changed files with 71 additions and 18 deletions

25
tsconfig.json Normal file
View File

@@ -0,0 +1,25 @@
{
"include": [
"core/**/*",
"closure/goog/base_minimal.js",
],
"compilerOptions": {
// Tells TypeScript to read JS files, as
// normally they are ignored as source files
"allowJs": true,
// Enable the next few options for type declarations.
// Generate d.ts files
//"declaration": true,
// Types should go into this directory.
// Removing this would place the .d.ts files
// next to the .js files
//"declarationDir": "build/ts/declarations",
"outDir": "build/ts",
"module": "ES2015",
"moduleResolution": "node",
"target": "ES2020",
"strict": true,
}
}