Commit Graph

158 Commits

Author SHA1 Message Date
Chocobozzz
3a4992633e
Migrate server to ESM
Sorry for the very big commit that may lead to git log issues and merge
conflicts, but it's a major step forward:

 * Server can be faster at startup because imports() are async and we can
   easily lazy import big modules
 * Angular doesn't seem to support ES import (with .js extension), so we
   had to correctly organize peertube into a monorepo:
    * Use yarn workspace feature
    * Use typescript reference projects for dependencies
    * Shared projects have been moved into "packages", each one is now a
      node module (with a dedicated package.json/tsconfig.json)
    * server/tools have been moved into apps/ and is now a dedicated app
      bundled and published on NPM so users don't have to build peertube
      cli tools manually
    * server/tests have been moved into packages/ so we don't compile
      them every time we want to run the server
 * Use isolatedModule option:
   * Had to move from const enum to const
     (https://www.typescriptlang.org/docs/handbook/enums.html#objects-vs-enums)
   * Had to explictely specify "type" imports when used in decorators
 * Prefer tsx (that uses esbuild under the hood) instead of ts-node to
   load typescript files (tests with mocha or scripts):
     * To reduce test complexity as esbuild doesn't support decorator
       metadata, we only test server files that do not import server
       models
     * We still build tests files into js files for a faster CI
 * Remove unmaintained peertube CLI import script
 * Removed some barrels to speed up execution (less imports)
2023-08-11 15:02:33 +02:00
Chocobozzz
c37e305342
Fix CI tests 2023-06-29 10:19:05 +02:00
Chocobozzz
902b16af03
Breaking: remove node 14 support 2023-05-09 10:02:54 +02:00
Chocobozzz
21609258de Increase timeouts 2023-05-09 08:57:34 +02:00
Chocobozzz
3a0c2a77b1 Enable external plugins to test the PR 2023-05-09 08:57:34 +02:00
Chocobozzz
1772b383de Add peertube runner cli 2023-05-09 08:57:34 +02:00
Chocobozzz
18c53ef949 Fix activitypub doc URL 2023-05-09 08:57:34 +02:00
Mats Blomdahl
907bcfa02c
Misc wording fixes, while learning how to test/contribute (#5727)
* Misc wording fixes, while learning how to test/contribute

- Remove duplicate discrimination topic in Code of Conduct
- Correct capitalization of some brands (PeerTube, GitHub)
- Replace `npm` with `yarn`, for additional consistency

* Revert `yarn` to `npm run` per PR #5727 comment

* Remove note on how to start Redis on Windows/WSL
2023-04-05 08:51:38 +02:00
Chocobozzz
00ee545c24
Remove $ for bash commands
It prevents easy copy
2023-04-04 09:18:06 +02:00
Chocobozzz
ebd61437c1
Revert matrix for docker build 2023-03-27 09:00:16 +02:00
Chocobozzz
43fe59ae86
Fix docker ci matrix 2023-03-23 08:55:27 +01:00
Chocobozzz
d6fcbe8d6d
Try to fix docker build timeout 2023-03-22 09:14:20 +01:00
Chocobozzz
11c834bdba
Add server code new feature walkthrough 2023-03-16 14:15:33 +01:00
Chocobozzz
ca829e9a83
Deprecate node 14 2023-03-15 09:38:24 +01:00
Chocobozzz
f44cd95c01
Update doc anchor links 2023-02-23 09:46:43 +01:00
Chocobozzz
c5c95361e6
Move to new documentation links 2023-02-22 16:15:14 +01:00
Chocobozzz
efaf379789
Fix dev instance following test instances 2023-02-17 10:28:33 +01:00
Chocobozzz
f8deb7982c
Fix redoc cli command 2023-02-17 10:10:22 +01:00
Chocobozzz
f11d8a8380
Update contributing guide 2023-02-17 09:14:00 +01:00
Chocobozzz
29ff788963
Add contributing guide for embed 2023-02-16 16:47:13 +01:00
Chocobozzz
1f26c0b846
Add openapi doc guide in documentation 2023-02-16 16:41:32 +01:00
Chocobozzz
2fcd3cbf02
Update contributing guide 2023-02-09 12:16:42 +01:00
Chocobozzz
0daaab0c0e
Try to fix github api rate limit 2022-12-29 10:24:06 +01:00
Chocobozzz
a47bbfcc7f
Fix docker ci 2022-11-02 14:09:54 +01:00
Chocobozzz
3a58ab452d
Upgrade docker action dep 2022-10-31 09:24:31 +01:00
Chocobozzz
823cc35bb5
Revert "Use node 16 for tests"
This reverts commit 1f45f8b00d.
2022-10-28 17:26:26 +02:00
Chocobozzz
1f45f8b00d
Use node 16 for tests 2022-10-28 17:12:33 +02:00
Chocobozzz
9ab330b90d Use private ACL for private videos in s3 2022-10-24 14:48:24 +02:00
Chocobozzz
8c13fd744f
Update upluad artifacts 2022-10-11 14:36:19 +02:00
Chocobozzz
36305301cb
Set AKISMET_KEY as env 2022-09-28 08:25:46 +02:00
Jelle Besseling
d342d752b3 Add info about running redis server 2022-09-19 08:53:37 +02:00
Chocobozzz
14b3e8f445
Fix test after hooks 2022-07-13 11:34:48 +02:00
Chocobozzz
edd7b1256b
Add info on dev env variables 2022-07-07 08:27:27 +02:00
Chocobozzz
9452d4fd33
/!\ Use a dedicated config file for development
It means you have to replace NODE_ENV=test to NODE_ENV=dev if you use it
npm run dev:* commands are already updated
2022-07-06 16:12:17 +02:00
Chocobozzz
388a31d241
Upgrade CI actions 2022-06-27 15:28:32 +02:00
Chocobozzz
936ce6e563
Remove all checkboxes in issue templates 2022-06-14 09:04:14 +02:00
Chocobozzz
1ed012eb39
Don't render checkboxes in issue template 2022-06-14 09:02:11 +02:00
Chocobozzz
5bb4271edb
Add form template for issue templates 2022-06-13 15:05:42 +02:00
Chocobozzz
93e3f662b5
Remove question template, prefer using the forum 2022-05-10 10:04:19 +02:00
Chocobozzz
7b51ede977
Merge branch 'release/4.1.0' into develop 2022-03-08 11:28:32 +01:00
Chocobozzz
0c058f256a
Remove exif tags when processing images 2022-03-07 17:23:12 +01:00
Chocobozzz
95faf1eaff
Create another test suite for transcoding jobs 2022-02-28 16:02:08 +01:00
Chocobozzz
1087427616
Improve benchmark script CLI options 2022-02-28 15:19:44 +01:00
thecashewtrader
85cba7f1f0 Fix broken links in contributing guideline 2022-01-14 09:15:59 +01:00
Chocobozzz
7853a425e4
Job name for docker builds 2022-01-03 14:42:53 +01:00
Chocobozzz
6627dbc957
Move types package in packages/ 2021-12-28 10:18:15 +01:00
Chocobozzz
fafc7c3cbd
Update resolve tspaths and enabled CI for types 2021-12-28 08:37:05 +01:00
Chocobozzz
4ff75a3b2c
Deprecate node 12 2021-12-24 13:52:32 +01:00
Chocobozzz
fe392059a8
Global server dep update 2021-12-24 13:38:00 +01:00
Chocobozzz
b969539c83
Fix types dist paths 2021-12-24 13:28:33 +01:00