diff options
author | John Livingston <git@john-livingston.fr> | 2022-09-12 10:46:18 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2022-09-16 10:20:04 +0200 |
commit | 56162c6a06732b6beb2021d0d95450363e21cadf (patch) | |
tree | 202638c7e664f226af4336397ee7d8572d03a40d /support | |
parent | 927d14bd264d9aafafc21a0e095c8837f6b4acd8 (diff) | |
download | PeerTube-56162c6a06732b6beb2021d0d95450363e21cadf.tar.gz PeerTube-56162c6a06732b6beb2021d0d95450363e21cadf.tar.zst PeerTube-56162c6a06732b6beb2021d0d95450363e21cadf.zip |
Adding peertube-plugin-quickstart-typescript in the documentation.
Diffstat (limited to 'support')
-rw-r--r-- | support/doc/plugins/guide.md | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/support/doc/plugins/guide.md b/support/doc/plugins/guide.md index e567e6c1b..431d5332f 100644 --- a/support/doc/plugins/guide.md +++ b/support/doc/plugins/guide.md | |||
@@ -914,7 +914,10 @@ If you want to write modern JavaScript, please use a transpiler like [Babel](htt | |||
914 | 914 | ||
915 | **Typescript** | 915 | **Typescript** |
916 | 916 | ||
917 | If you want to use __Typescript__, you can add __PeerTube__ types as dev dependencies: | 917 | The easiest way to use __Typescript__ for both front-end and backend code is to clone [peertube-plugin-quickstart-typescript](https://github.com/JohnXLivingston/peertube-plugin-quickstart-typescript/) (also available on [framagit](https://framagit.org/Livingston/peertube-plugin-quickstart-typescript/)) instead of `peertube-plugin-quickstart`. |
918 | Please read carefully the [README file](https://github.com/JohnXLivingston/peertube-plugin-quickstart-typescript/blob/main/README.md), as there are some other differences with `peertube-plugin-quickstart` (using SCSS instead of CSS, linting rules, ...). | ||
919 | |||
920 | If you don't want to use `peertube-plugin-quickstart-typescript`, you can also manually add a dev dependency to __Peertube__ types: | ||
918 | 921 | ||
919 | ``` | 922 | ``` |
920 | npm install --save-dev @peertube/peertube-types | 923 | npm install --save-dev @peertube/peertube-types |