Set up typescript project
This commit is contained in:
parent
838844a9d8
commit
658c523e9c
3 changed files with 32 additions and 0 deletions
4
.vscode/settings.json
vendored
Normal file
4
.vscode/settings.json
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"json.format.keepLines": true,
|
||||||
|
"typescript.format.semicolons": "insert",
|
||||||
|
}
|
||||||
5
static/main.ts
Normal file
5
static/main.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
function main() {
|
||||||
|
alert("Hello world!");
|
||||||
|
}
|
||||||
|
|
||||||
|
main();
|
||||||
23
tsconfig.json
Normal file
23
tsconfig.json
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
{ // See also https://aka.ms/tsconfig
|
||||||
|
"include": [ "static/**/*" ],
|
||||||
|
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "ES2015",
|
||||||
|
"module": "ES2015",
|
||||||
|
"rootDir": "static",
|
||||||
|
"outDir": "target/static",
|
||||||
|
|
||||||
|
// Misc
|
||||||
|
// TODO Source maps?
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"newLine": "lf",
|
||||||
|
"removeComments": true,
|
||||||
|
|
||||||
|
// Type checking
|
||||||
|
"noFallthroughCasesInSwitch": true,
|
||||||
|
"noImplicitOverride": true,
|
||||||
|
"noPropertyAccessFromIndexSignature": true,
|
||||||
|
"noUncheckedIndexedAccess": true,
|
||||||
|
"strict": true,
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue