diff options
author | Chocobozzz <me@florianbigard.com> | 2023-07-10 16:41:08 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-07-10 16:41:08 +0200 |
commit | c3030e944ad03c7fd7b5d668a2d88ff03e4cdf19 (patch) | |
tree | 60cfdd1aabe66ff4f65fd94243debecb7dd41555 | |
parent | 63e2f087c3410206aa294df8099b005e615592e5 (diff) | |
download | PeerTube-c3030e944ad03c7fd7b5d668a2d88ff03e4cdf19.tar.gz PeerTube-c3030e944ad03c7fd7b5d668a2d88ff03e4cdf19.tar.zst PeerTube-c3030e944ad03c7fd7b5d668a2d88ff03e4cdf19.zip |
Fix build
-rw-r--r-- | client/.eslintrc.json | 2 | ||||
-rw-r--r-- | client/.gitignore | 4 | ||||
-rw-r--r-- | client/webpack/webpack.video-embed.js | 2 | ||||
-rwxr-xr-x | scripts/release-embed-api.sh | 2 | ||||
-rw-r--r-- | support/doc/development/lib.md | 2 | ||||
-rw-r--r-- | 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 @@ | |||
3 | "ignorePatterns": [ | 3 | "ignorePatterns": [ |
4 | "projects/**/*", | 4 | "projects/**/*", |
5 | "node_modules/", | 5 | "node_modules/", |
6 | "src/standalone/player/dist" | 6 | "src/standalone/embed-player-api/dist" |
7 | ], | 7 | ], |
8 | "overrides": [ | 8 | "overrides": [ |
9 | { | 9 | { |
diff --git a/client/.gitignore b/client/.gitignore index ca68413c8..cb85788f5 100644 --- a/client/.gitignore +++ b/client/.gitignore | |||
@@ -12,5 +12,5 @@ | |||
12 | /e2e/local.log | 12 | /e2e/local.log |
13 | /e2e/browserstack.err | 13 | /e2e/browserstack.err |
14 | /e2e/screenshots | 14 | /e2e/screenshots |
15 | /src/standalone/player/build | 15 | /src/standalone/embed-player-api/build |
16 | /src/standalone/player/dist | 16 | /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 () { | |||
10 | const configuration = { | 10 | const configuration = { |
11 | entry: { | 11 | entry: { |
12 | 'video-embed': './src/standalone/videos/embed.ts', | 12 | 'video-embed': './src/standalone/videos/embed.ts', |
13 | 'player': './src/standalone/player/player.ts', | 13 | 'player': './src/standalone/embed-player-api/player.ts', |
14 | 'test-embed': './src/standalone/videos/test-embed.ts' | 14 | 'test-embed': './src/standalone/videos/test-embed.ts' |
15 | }, | 15 | }, |
16 | 16 | ||
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 @@ | |||
2 | 2 | ||
3 | set -eu | 3 | set -eu |
4 | 4 | ||
5 | cd client/src/standalone/player | 5 | cd client/src/standalone/embed-player-api |
6 | 6 | ||
7 | rm -rf dist build && tsc -p . && ../../../node_modules/.bin/webpack --config ./webpack.config.js | 7 | rm -rf dist build && tsc -p . && ../../../node_modules/.bin/webpack --config ./webpack.config.js |
8 | 8 | ||
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 @@ | |||
5 | ### Build & Publish | 5 | ### Build & Publish |
6 | 6 | ||
7 | ``` | 7 | ``` |
8 | cd client/src/standalone/player/ | 8 | cd client/src/standalone/embed-player-api/ |
9 | npm run build | 9 | npm run build |
10 | npm publish --access=public | 10 | npm publish --access=public |
11 | ``` | 11 | ``` |
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 | |||
28 | 28 | ||
29 | ## @peertube/embed-api | 29 | ## @peertube/embed-api |
30 | 30 | ||
31 | At the root of PeerTube: | ||
32 | |||
31 | ``` | 33 | ``` |
32 | cd client/src/standalone/player | 34 | cd client/src/standalone/embed-player-api |
33 | npm version patch | 35 | npm version patch |
34 | npm run build | 36 | cd ../../../../ |
35 | npm publish --access=public | 37 | npm run release-embed-api |
36 | ``` | 38 | ``` |