Add REST API docs watcher commands and update nodemon configuration
This commit is contained in:
parent
6c43a108e4
commit
46ce0fbec5
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"watch": ["openapi/**/*.yaml", "openapi/**/*.yml"],
|
"watch": ["meet-ce/**/**/openapi/**/*.yaml", "meet-ce/**/**/openapi/**/*.yml"],
|
||||||
"ext": "yaml,yml",
|
"ext": "yaml,yml",
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"exec": "pnpm --filter @openvidu-meet/backend run doc:api && pnpm --filter @openvidu-meet/backend run doc:internal-api && echo '✅ OpenVidu Meet REST API docs updated successfully!'"
|
"exec": "pnpm --filter @openvidu-meet/backend run doc:api && pnpm --filter @openvidu-meet/backend run doc:internal-api && echo '✅ OpenVidu Meet REST API docs updated successfully!'"
|
||||||
|
|||||||
21
meet.sh
21
meet.sh
@ -392,6 +392,11 @@ add_ce_commands() {
|
|||||||
local components_path="$1"
|
local components_path="$1"
|
||||||
local shared_meet_components_path="$2"
|
local shared_meet_components_path="$2"
|
||||||
|
|
||||||
|
# REST API docs watcher
|
||||||
|
CMD_NAMES+=("rest-api-docs")
|
||||||
|
CMD_COLORS+=("bgGray")
|
||||||
|
CMD_COMMANDS+=("pnpm run dev:rest-api-docs")
|
||||||
|
|
||||||
# Run backend
|
# Run backend
|
||||||
CMD_NAMES+=("backend")
|
CMD_NAMES+=("backend")
|
||||||
CMD_COLORS+=("cyan")
|
CMD_COLORS+=("cyan")
|
||||||
@ -408,6 +413,11 @@ add_pro_commands() {
|
|||||||
local components_path="$1"
|
local components_path="$1"
|
||||||
local shared_meet_components_path="$2"
|
local shared_meet_components_path="$2"
|
||||||
|
|
||||||
|
# REST API docs watcher
|
||||||
|
CMD_NAMES+=("rest-api-docs")
|
||||||
|
CMD_COLORS+=("bgGray")
|
||||||
|
CMD_COMMANDS+=("pnpm run dev:pro-rest-api-docs")
|
||||||
|
|
||||||
# Run backend-pro
|
# Run backend-pro
|
||||||
CMD_NAMES+=("backend-pro")
|
CMD_NAMES+=("backend-pro")
|
||||||
CMD_COLORS+=("cyan")
|
CMD_COLORS+=("cyan")
|
||||||
@ -430,14 +440,9 @@ add_pro_commands() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Helper: Add REST API docs and browser-sync commands
|
# Helper: Add REST API docs and browser-sync commands
|
||||||
add_docs_and_browsersync_commands() {
|
add_browsersync_commands() {
|
||||||
local browsersync_path="$1"
|
local browsersync_path="$1"
|
||||||
|
|
||||||
# REST API docs watcher
|
|
||||||
CMD_NAMES+=("rest-api-docs")
|
|
||||||
CMD_COLORS+=("bgGray")
|
|
||||||
CMD_COMMANDS+=("pnpm run dev:rest-api-docs")
|
|
||||||
|
|
||||||
# Browser-sync for live reload
|
# Browser-sync for live reload
|
||||||
CMD_NAMES+=("browser-sync")
|
CMD_NAMES+=("browser-sync")
|
||||||
CMD_COLORS+=("bgWhite.black")
|
CMD_COLORS+=("bgWhite.black")
|
||||||
@ -536,8 +541,8 @@ dev() {
|
|||||||
add_ce_commands "$components_path" "$shared_meet_components_path"
|
add_ce_commands "$components_path" "$shared_meet_components_path"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add docs and browser-sync commands
|
# Add browser-sync commands
|
||||||
add_docs_and_browsersync_commands "$browsersync_path"
|
add_browsersync_commands "$browsersync_path"
|
||||||
|
|
||||||
# Launch all watchers
|
# Launch all watchers
|
||||||
launch_dev_watchers "$edition" "$components_path"
|
launch_dev_watchers "$edition" "$components_path"
|
||||||
|
|||||||
@ -20,6 +20,7 @@
|
|||||||
"dev:testapp": "pnpm --filter testapp run dev",
|
"dev:testapp": "pnpm --filter testapp run dev",
|
||||||
"dev:typings": "pnpm --filter @openvidu-meet/typings run dev",
|
"dev:typings": "pnpm --filter @openvidu-meet/typings run dev",
|
||||||
"dev:rest-api-docs": "nodemon --config meet-ce/backend/nodemon.docs.json",
|
"dev:rest-api-docs": "nodemon --config meet-ce/backend/nodemon.docs.json",
|
||||||
|
"dev:pro-rest-api-docs": "nodemon --config meet-pro/backend/nodemon.docs.json",
|
||||||
"start:testapp": "pnpm --filter testapp run start",
|
"start:testapp": "pnpm --filter testapp run start",
|
||||||
"test:integration-backend": "pnpm --filter @openvidu-meet/backend run test:integration",
|
"test:integration-backend": "pnpm --filter @openvidu-meet/backend run test:integration",
|
||||||
"test:integration-backend-rooms": "pnpm --filter @openvidu-meet/backend run test:integration-rooms",
|
"test:integration-backend-rooms": "pnpm --filter @openvidu-meet/backend run test:integration-rooms",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user