From c3030e944ad03c7fd7b5d668a2d88ff03e4cdf19 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 10 Jul 2023 16:41:08 +0200 Subject: [PATCH] Fix build --- client/.eslintrc.json | 2 +- client/.gitignore | 4 ++-- client/webpack/webpack.video-embed.js | 2 +- scripts/release-embed-api.sh | 2 +- support/doc/development/lib.md | 2 +- support/doc/development/release.md | 8 +++++--- 6 files changed, 11 insertions(+), 9 deletions(-) diff --git a/client/.eslintrc.json b/client/.eslintrc.json index a297cdc94..c5685b9dc 100644 --- a/client/.eslintrc.json +++ b/client/.eslintrc.json @@ -3,7 +3,7 @@ "ignorePatterns": [ "projects/**/*", "node_modules/", - "src/standalone/player/dist" + "src/standalone/embed-player-api/dist" ], "overrides": [ { diff --git a/client/.gitignore b/client/.gitignore index ca68413c8..cb85788f5 100644 --- a/client/.gitignore +++ b/client/.gitignore @@ -12,5 +12,5 @@ /e2e/local.log /e2e/browserstack.err /e2e/screenshots -/src/standalone/player/build -/src/standalone/player/dist +/src/standalone/embed-player-api/build +/src/standalone/embed-player-api/dist diff --git a/client/webpack/webpack.video-embed.js b/client/webpack/webpack.video-embed.js index 558481473..47d440c25 100644 --- a/client/webpack/webpack.video-embed.js +++ b/client/webpack/webpack.video-embed.js @@ -10,7 +10,7 @@ module.exports = function () { const configuration = { entry: { 'video-embed': './src/standalone/videos/embed.ts', - 'player': './src/standalone/player/player.ts', + 'player': './src/standalone/embed-player-api/player.ts', 'test-embed': './src/standalone/videos/test-embed.ts' }, diff --git a/scripts/release-embed-api.sh b/scripts/release-embed-api.sh index ae76a65f5..41c84ed38 100755 --- a/scripts/release-embed-api.sh +++ b/scripts/release-embed-api.sh @@ -2,7 +2,7 @@ set -eu -cd client/src/standalone/player +cd client/src/standalone/embed-player-api rm -rf dist build && tsc -p . && ../../../node_modules/.bin/webpack --config ./webpack.config.js diff --git a/support/doc/development/lib.md b/support/doc/development/lib.md index 3cccaf3d0..25fe3068e 100644 --- a/support/doc/development/lib.md +++ b/support/doc/development/lib.md @@ -5,7 +5,7 @@ ### Build & Publish ``` -cd client/src/standalone/player/ +cd client/src/standalone/embed-player-api/ npm run build npm publish --access=public ``` diff --git a/support/doc/development/release.md b/support/doc/development/release.md index c4935524c..81e35c58d 100644 --- a/support/doc/development/release.md +++ b/support/doc/development/release.md @@ -28,9 +28,11 @@ NODE_APP_INSTANCE=6 NODE_ENV=test node dist/server --benchmark-startup ## @peertube/embed-api +At the root of PeerTube: + ``` -cd client/src/standalone/player +cd client/src/standalone/embed-player-api npm version patch -npm run build -npm publish --access=public +cd ../../../../ +npm run release-embed-api ```