mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 07:42:48 +08:00
chore: add TS config
This commit is contained in:
parent
6155046330
commit
8070247433
|
@ -16,6 +16,7 @@
|
|||
"packageManager": "yarn@3.1.1",
|
||||
"devDependencies": {
|
||||
"@flarum/prettier-config": "^1.0.0",
|
||||
"flarum-tsconfig": "^1.0.2",
|
||||
"prettier": "^2.5.1"
|
||||
}
|
||||
}
|
||||
|
|
16
extensions/markdown/js/tsconfig.json
Normal file
16
extensions/markdown/js/tsconfig.json
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
// Use Flarum's tsconfig as a starting point
|
||||
"extends": "flarum-tsconfig",
|
||||
// This will match all .ts, .tsx, .d.ts, .js, .jsx files in your `src` folder
|
||||
// and also tells your Typescript server to read core's global typings for
|
||||
// access to `dayjs` and `$` in the global namespace.
|
||||
"include": ["src/**/*", "../vendor/flarum/core/js/dist-typings/@types/**/*"],
|
||||
"compilerOptions": {
|
||||
// This will output typings to `dist-typings`
|
||||
"declarationDir": "./dist-typings",
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"flarum/*": ["../vendor/flarum/core/js/dist-typings/*"]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1382,6 +1382,7 @@ __metadata:
|
|||
resolution: "@flarum/markdown@workspace:."
|
||||
dependencies:
|
||||
"@flarum/prettier-config": ^1.0.0
|
||||
flarum-tsconfig: ^1.0.2
|
||||
flarum-webpack-config: ^1.0.0
|
||||
prettier: ^2.5.1
|
||||
webpack: ^4.46.0
|
||||
|
@ -1437,6 +1438,15 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/jquery@npm:^3.5.5":
|
||||
version: 3.5.11
|
||||
resolution: "@types/jquery@npm:3.5.11"
|
||||
dependencies:
|
||||
"@types/sizzle": "*"
|
||||
checksum: bad7c4495ade39e712462af534169790115d07874bb1a8c43a597676bd4e4d62caaf961353836f1e9f67309cac3a224b8743da07bad4cb2ff853b93f1856014b
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/json-schema@npm:^7.0.5":
|
||||
version: 7.0.9
|
||||
resolution: "@types/json-schema@npm:7.0.9"
|
||||
|
@ -1444,6 +1454,27 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/mithril@npm:^2.0.7":
|
||||
version: 2.0.8
|
||||
resolution: "@types/mithril@npm:2.0.8"
|
||||
checksum: 53d10bacd004b8028884a2e5a908ce32fd54da5247e47afd8aec0edff01fd56cc239fd72d0487d406d328363dc55adcefcd430088584e68622c2623708c94cbd
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/sizzle@npm:*":
|
||||
version: 2.3.3
|
||||
resolution: "@types/sizzle@npm:2.3.3"
|
||||
checksum: 586a9fb1f6ff3e325e0f2cc1596a460615f0bc8a28f6e276ac9b509401039dd242fa8b34496d3a30c52f5b495873922d09a9e76c50c2ab2bcc70ba3fb9c4e160
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/throttle-debounce@npm:^2.1.0":
|
||||
version: 2.1.0
|
||||
resolution: "@types/throttle-debounce@npm:2.1.0"
|
||||
checksum: 70e219d000595108fce0dc624c8296e37cdb174b528e09c939da18e619da1c6df86b088659f5eb93cb146bd5fe2954597823c2e1f0849dc8f6585d87cbbf71b7
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@webassemblyjs/ast@npm:1.9.0":
|
||||
version: 1.9.0
|
||||
resolution: "@webassemblyjs/ast@npm:1.9.0"
|
||||
|
@ -2664,6 +2695,13 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"dayjs@npm:^1.10.4":
|
||||
version: 1.10.7
|
||||
resolution: "dayjs@npm:1.10.7"
|
||||
checksum: a0a4ca95abaa03d0702161dc2c35d16121188e342f5052b9c61cdf784dab68af766f477c04f87f71c6af666fd4d13db9b9853b87265850d6093b7b04e1bb1cd7
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"debug@npm:4, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1":
|
||||
version: 4.3.3
|
||||
resolution: "debug@npm:4.3.3"
|
||||
|
@ -3125,6 +3163,18 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"flarum-tsconfig@npm:^1.0.2":
|
||||
version: 1.0.2
|
||||
resolution: "flarum-tsconfig@npm:1.0.2"
|
||||
dependencies:
|
||||
"@types/jquery": ^3.5.5
|
||||
"@types/mithril": ^2.0.7
|
||||
"@types/throttle-debounce": ^2.1.0
|
||||
dayjs: ^1.10.4
|
||||
checksum: 65a59571ac042b442effc96d979c73365da153c34c489c698b2974a2d9fea877a8acf4030dad6becc0ecaecb6b296f598db2e9badd33a9f31eee6245d0301e92
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"flarum-webpack-config@npm:^1.0.0":
|
||||
version: 1.0.0
|
||||
resolution: "flarum-webpack-config@npm:1.0.0"
|
||||
|
|
Loading…
Reference in New Issue
Block a user