diff options
author | lutangar <johan.dufour@gmail.com> | 2021-11-09 13:49:08 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-12-16 10:08:43 +0100 |
commit | 8b03e2ce1a2098261de2f729f660b1ae2a320b65 (patch) | |
tree | ca4770cf86c9c54814dbb62bfc95ef38661646b2 /client/tsconfig.types.json | |
parent | 06aad80165d09a8863ab8103149a8ff518b10641 (diff) | |
download | PeerTube-8b03e2ce1a2098261de2f729f660b1ae2a320b65.tar.gz PeerTube-8b03e2ce1a2098261de2f729f660b1ae2a320b65.tar.zst PeerTube-8b03e2ce1a2098261de2f729f660b1ae2a320b65.zip |
feat(types): create peertube-types package
Create dedicated Typescript "types" configuration file for each "projects".
Create a types folder which includes every useful ts definition:
- client
- server
- shared
Add tooling to create a proper package, extract dependencies, etc...
Add CI Github task.
refactor(types): publish types package in release script
Diffstat (limited to 'client/tsconfig.types.json')
-rw-r--r-- | client/tsconfig.types.json | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/client/tsconfig.types.json b/client/tsconfig.types.json new file mode 100644 index 000000000..35a5e92cc --- /dev/null +++ b/client/tsconfig.types.json | |||
@@ -0,0 +1,18 @@ | |||
1 | { | ||
2 | "extends": "./tsconfig.json", | ||
3 | "compilerOptions": { | ||
4 | "stripInternal": true, | ||
5 | "removeComments": false, | ||
6 | "declaration": true, | ||
7 | "outDir": "../types/client/", | ||
8 | "emitDeclarationOnly": true, | ||
9 | "composite": true, | ||
10 | "rootDir": "src/", | ||
11 | "tsBuildInfoFile": "../types/client.tsbuildinfo" | ||
12 | }, | ||
13 | "references": [ | ||
14 | { "path": "../shared/tsconfig.types.json" } | ||
15 | ], | ||
16 | "files": ["src/index.ts"], | ||
17 | "include": ["src/index.ts", "src/types/**/*"] | ||
18 | } | ||