1
0
Fork 0
peertube/packages/tests/fixtures
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
..
ap-json Migrate server to ESM 2023-08-11 15:02:33 +02:00
live Migrate server to ESM 2023-08-11 15:02:33 +02:00
peertube-plugin-test Migrate server to ESM 2023-08-11 15:02:33 +02:00
peertube-plugin-test-broken Migrate server to ESM 2023-08-11 15:02:33 +02:00
peertube-plugin-test-external-auth-one Migrate server to ESM 2023-08-11 15:02:33 +02:00
peertube-plugin-test-external-auth-three Migrate server to ESM 2023-08-11 15:02:33 +02:00
peertube-plugin-test-external-auth-two Migrate server to ESM 2023-08-11 15:02:33 +02:00
peertube-plugin-test-filter-translations Migrate server to ESM 2023-08-11 15:02:33 +02:00
peertube-plugin-test-five Migrate server to ESM 2023-08-11 15:02:33 +02:00
peertube-plugin-test-four Migrate server to ESM 2023-08-11 15:02:33 +02:00
peertube-plugin-test-id-pass-auth-one Migrate server to ESM 2023-08-11 15:02:33 +02:00
peertube-plugin-test-id-pass-auth-three Migrate server to ESM 2023-08-11 15:02:33 +02:00
peertube-plugin-test-id-pass-auth-two Migrate server to ESM 2023-08-11 15:02:33 +02:00
peertube-plugin-test-native Migrate server to ESM 2023-08-11 15:02:33 +02:00
peertube-plugin-test-podcast-custom-tags Migrate server to ESM 2023-08-11 15:02:33 +02:00
peertube-plugin-test-six Migrate server to ESM 2023-08-11 15:02:33 +02:00
peertube-plugin-test-transcoding-one Migrate server to ESM 2023-08-11 15:02:33 +02:00
peertube-plugin-test-transcoding-two Migrate server to ESM 2023-08-11 15:02:33 +02:00
peertube-plugin-test-unloading Migrate server to ESM 2023-08-11 15:02:33 +02:00
peertube-plugin-test-video-constants Migrate server to ESM 2023-08-11 15:02:33 +02:00
peertube-plugin-test-websocket Migrate server to ESM 2023-08-11 15:02:33 +02:00
60fps_720p_small.mp4 Migrate server to ESM 2023-08-11 15:02:33 +02:00
avatar-big.png Migrate server to ESM 2023-08-11 15:02:33 +02:00
avatar-resized-48x48.gif Migrate server to ESM 2023-08-11 15:02:33 +02:00
avatar-resized-48x48.png Migrate server to ESM 2023-08-11 15:02:33 +02:00
avatar-resized-120x120.gif Migrate server to ESM 2023-08-11 15:02:33 +02:00
avatar-resized-120x120.png Migrate server to ESM 2023-08-11 15:02:33 +02:00
avatar.gif Migrate server to ESM 2023-08-11 15:02:33 +02:00
avatar.png Migrate server to ESM 2023-08-11 15:02:33 +02:00
avatar2-resized-48x48.png Migrate server to ESM 2023-08-11 15:02:33 +02:00
avatar2-resized-120x120.png Migrate server to ESM 2023-08-11 15:02:33 +02:00
avatar2.png Migrate server to ESM 2023-08-11 15:02:33 +02:00
banner-resized.jpg Migrate server to ESM 2023-08-11 15:02:33 +02:00
banner.jpg Migrate server to ESM 2023-08-11 15:02:33 +02:00
custom-preview-big.png Migrate server to ESM 2023-08-11 15:02:33 +02:00
custom-preview.jpg Migrate server to ESM 2023-08-11 15:02:33 +02:00
custom-thumbnail-big.jpg Migrate server to ESM 2023-08-11 15:02:33 +02:00
custom-thumbnail.jpg Migrate server to ESM 2023-08-11 15:02:33 +02:00
custom-thumbnail.png Migrate server to ESM 2023-08-11 15:02:33 +02:00
exif.jpg Migrate server to ESM 2023-08-11 15:02:33 +02:00
exif.png Migrate server to ESM 2023-08-11 15:02:33 +02:00
low-bitrate.mp4 Migrate server to ESM 2023-08-11 15:02:33 +02:00
rtmps.cert Migrate server to ESM 2023-08-11 15:02:33 +02:00
rtmps.key Migrate server to ESM 2023-08-11 15:02:33 +02:00
sample.ogg Migrate server to ESM 2023-08-11 15:02:33 +02:00
subtitle-bad.txt Migrate server to ESM 2023-08-11 15:02:33 +02:00
subtitle-good.srt Migrate server to ESM 2023-08-11 15:02:33 +02:00
subtitle-good1.vtt Migrate server to ESM 2023-08-11 15:02:33 +02:00
subtitle-good2.vtt Migrate server to ESM 2023-08-11 15:02:33 +02:00
thumbnail-playlist.jpg Migrate server to ESM 2023-08-11 15:02:33 +02:00
video-720p.torrent Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_import_preview.jpg Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_import_preview_yt_dlp.jpg Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_import_thumbnail.jpg Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_import_thumbnail_yt_dlp.jpg Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short.avi Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short.mkv Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short.mp4 Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short.mp4.jpg Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short.ogv Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short.ogv.jpg Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short.webm Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short.webm.jpg Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short1-preview.webm.jpg Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short1.webm Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short1.webm.jpg Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short2.webm Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short2.webm.jpg Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short3.webm Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short3.webm.jpg Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short_0p.mp4 Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short_4k.mp4 Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short_144p.m3u8 Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short_144p.mp4 Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short_240p.m3u8 Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short_240p.mp4 Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short_360p.m3u8 Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short_360p.mp4 Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short_480.webm Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short_480p.m3u8 Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short_480p.mp4 Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short_720p.m3u8 Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short_720p.mp4 Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short_fake.webm Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short_mp3_256k.mp4 Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_short_no_audio.mp4 Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_very_long_10p.mp4 Migrate server to ESM 2023-08-11 15:02:33 +02:00
video_very_short_240p.mp4 Migrate server to ESM 2023-08-11 15:02:33 +02:00