mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
web: Set up typescript
This commit is contained in:
parent
2ab0010685
commit
de01f861dd
3 changed files with 52 additions and 1 deletions
|
@ -21,5 +21,8 @@
|
|||
"animation",
|
||||
"thorvg",
|
||||
"tvg"
|
||||
]
|
||||
],
|
||||
"devDependencies": {
|
||||
"typescript": "^5.3.2"
|
||||
}
|
||||
}
|
||||
|
|
40
web/tsconfig.json
Normal file
40
web/tsconfig.json
Normal file
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": "./",
|
||||
"paths": {
|
||||
"@dist/*": [
|
||||
"dist/*"
|
||||
]
|
||||
},
|
||||
"target": "es2017",
|
||||
"lib": [
|
||||
"esnext.array",
|
||||
"esnext",
|
||||
"es2017",
|
||||
"dom"
|
||||
],
|
||||
"experimentalDecorators": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"allowJs": true,
|
||||
"checkJs": false,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"sourceMap": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
],
|
||||
}
|
8
web/yarn.lock
Normal file
8
web/yarn.lock
Normal file
|
@ -0,0 +1,8 @@
|
|||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
typescript@^5.3.2:
|
||||
version "5.3.2"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.2.tgz#00d1c7c1c46928c5845c1ee8d0cc2791031d4c43"
|
||||
integrity sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==
|
Loading…
Add table
Reference in a new issue