add typescript

Signed-off-by: Raccoon <raccoon@hackmd.io>
This commit is contained in:
Raccoon 2021-06-12 04:32:18 +08:00
parent 282fcab4f7
commit 3bd9808f74
No known key found for this signature in database
GPG Key ID: 06770355DC9ECD38
4 changed files with 22 additions and 1 deletions

2
.gitignore vendored
View File

@ -30,3 +30,5 @@ public/uploads/*
/coverage/
.vscode/settings.json
/dist

6
package-lock.json generated
View File

@ -15937,6 +15937,12 @@
"resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c="
},
"typescript": {
"version": "4.3.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.2.tgz",
"integrity": "sha512-zZ4hShnmnoVnAHpVHWpTcxdv7dWP60S2FsydQLV8V5PbS3FifjWFFRiHSWpDJahly88PRyV5teTSLoq4eG7mKw==",
"dev": true
},
"typo-js": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/typo-js/-/typo-js-1.0.3.tgz",

View File

@ -110,6 +110,7 @@
"@hackmd/idle-js": "~1.0.1",
"@hackmd/js-sequence-diagrams": "~0.0.1-alpha.3",
"@susisu/mte-kernel": "^2.1.0",
"@types/node": "^10.17.14",
"acorn": "~6.1.1",
"babel-core": "~6.26.3",
"babel-loader": "~7.1.4",
@ -191,6 +192,7 @@
"style-loader": "~0.23.1",
"tedious": "~6.2.0",
"turndown": "~5.0.3",
"typescript": "^4.3.2",
"typo-js": "^1.0.3",
"uglifyjs-webpack-plugin": "~1.2.7",
"url-loader": "~1.0.1",

11
tsconfig.json Normal file
View File

@ -0,0 +1,11 @@
{
"compileOnSave": true,
"compilerOptions": {
"allowJs": true,
"target": "ES5",
"outDir": "./dist/"
},
"include": [
"./lib/**/*"
]
}