]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commit - .eslintrc.json
chore(refactor): remove shared folder dependencies to the server
authorlutangar <johan.dufour@gmail.com>
Tue, 2 Nov 2021 18:11:20 +0000 (19:11 +0100)
committerChocobozzz <chocobozzz@cpy.re>
Thu, 16 Dec 2021 09:08:43 +0000 (10:08 +0100)
commit06aad80165d09a8863ab8103149a8ff518b10641
treea97fa31f3ade29ff807ca1b77704eb47085ab99d
parent854f533c12bd2b88c70f9d5aeab770059e9a6861
chore(refactor): remove shared folder dependencies to the server

Many files from the `shared` folder were importing files from the `server` folder.
When attempting to use Typescript project references to describe dependencies,
it highlighted a circular dependency beetween `shared` <-> `server`.

The Typescript project forbid such usages.
Using project references greatly improve performance by rebuilding only
the updated project and not all source files.
> see https://www.typescriptlang.org/docs/handbook/project-references.html
78 files changed:
.eslintrc.json
.gitignore
scripts/build/server.sh
scripts/client-build-stats.ts
scripts/setup/cli.sh
scripts/tsconfig.json [new file with mode: 0644]
server/controllers/api/users/token.ts
server/controllers/api/video-playlist.ts
server/controllers/api/videos/live.ts
server/controllers/api/videos/upload.ts
server/controllers/client.ts
server/controllers/static.ts
server/helpers/core-utils.ts
server/helpers/custom-validators/misc.ts
server/helpers/express-utils.ts
server/helpers/ffprobe-utils.ts
server/helpers/image-utils.ts
server/helpers/peertube-crypto.ts
server/helpers/utils.ts
server/helpers/webtorrent.ts
server/initializers/config.ts
server/initializers/constants.ts
server/initializers/migrations/0080-video-channels.ts
server/initializers/migrations/0345-video-playlists.ts
server/initializers/migrations/0560-user-feed-token.ts
server/lib/activitypub/actors/shared/object-to-model-attributes.ts
server/lib/auth/oauth.ts
server/lib/client-html.ts
server/lib/emailer.ts
server/lib/hls.ts
server/lib/job-queue/handlers/video-file-import.ts
server/lib/job-queue/handlers/video-import.ts
server/lib/local-actor.ts
server/lib/paths.ts
server/lib/user.ts
server/lib/video-path-manager.ts
server/models/actor/actor.ts
server/models/user/user-notification.ts
server/models/video/formatter/video-format-utils.ts
server/models/video/video-caption.ts
server/models/video/video-playlist.ts
server/models/video/video-streaming-playlist.ts
server/models/video/video.ts
server/tests/api/activitypub/security.ts
server/tests/api/notifications/moderation-notifications.ts
server/tests/api/notifications/user-notifications.ts
server/tests/api/server/follows.ts
server/tests/api/server/handle-down.ts
server/tests/api/videos/multiple-servers.ts
server/tests/api/videos/single-server.ts
server/tests/cli/prune-storage.ts
server/tests/shared/index.ts [new file with mode: 0644]
server/tests/shared/requests.ts [moved from shared/extra-utils/requests/activitypub.ts with 54% similarity]
server/tests/shared/video.ts [new file with mode: 0644]
server/tools/cli.ts
server/tools/peertube-import-videos.ts
server/tools/tsconfig.json
server/tsconfig.json [new file with mode: 0644]
shared/core-utils/crypto.ts [new file with mode: 0644]
shared/core-utils/index.ts
shared/core-utils/path.ts [new file with mode: 0644]
shared/core-utils/uuid.ts [moved from server/helpers/uuid.ts with 100% similarity]
shared/extra-utils/ffprobe.ts [new file with mode: 0644]
shared/extra-utils/miscs/checks.ts
shared/extra-utils/miscs/generate.ts
shared/extra-utils/server/directories.ts
shared/extra-utils/server/plugins-command.ts
shared/extra-utils/server/server.ts
shared/extra-utils/server/servers-command.ts
shared/extra-utils/server/tracker.ts
shared/extra-utils/users/actors.ts
shared/extra-utils/videos/streaming-playlists.ts
shared/extra-utils/videos/videos-command.ts
shared/extra-utils/videos/videos.ts
shared/tsconfig.json [new file with mode: 0644]
tsconfig.base.json [new file with mode: 0644]
tsconfig.json
tsconfig.types.json [new file with mode: 0644]