frontend: Add sync and build scripts for types and webcomponent

This commit is contained in:
Carlos Santos 2025-03-11 16:15:58 +01:00
parent 10a62e7de3
commit 0b4d4acf5a

View File

@ -6,6 +6,7 @@
"start:dev": "npx ng serve --configuration development --port=5080 --host=0.0.0.0",
"build:dev": "npx ng build --configuration development --watch",
"build:prod": "func() { ./node_modules/@angular/cli/bin/ng.js build --configuration production --base-href=\"${1:-/}\"; }; func",
"types:sync": "npm run sync-ce --prefix ../types",
"sync:backend": "npx ng build --configuration production --output-path ../backend/dist/public/",
"e2e:run-all": "npx mocha --recursive --timeout 30000 ./tests/e2e/**/*.test.ts",
"e2e:run-routes": "npx mocha --recursive --timeout 30000 ./tests/e2e/routes.test.ts",
@ -18,6 +19,7 @@
"lib:pack": "cd dist/shared-meet-components && npm pack",
"lib:sync-pro": "npm run lib:build && npm run lib:pack && cp dist/shared-meet-components/shared-meet-components-**.tgz ../../openvidu-meet-pro/frontend",
"test:unit": "ng test openvidu-meet --watch=false --code-coverage",
"webcomponent:build": "npm run build --prefix webcomponent",
"webcomponent:unit-test": "node --experimental-vm-modules node_modules/.bin/jest --config jest.config.mjs",
"lint:fix": "eslint src --fix",
"format:code": "prettier --ignore-path ../gitignore . --write"