ov-components: Adds build and copy scripts

Adds `cpx` and `rimraf` packages.
Updates library build script to remove destination directory and copy distribution files.
Updates library package configurations.
master
Carlos Santos 2025-10-21 19:22:12 +02:00
parent bb47c3696c
commit c576133b42
5 changed files with 2172 additions and 78 deletions

File diff suppressed because it is too large Load Diff

View File

@ -30,6 +30,7 @@
"@types/ws": "^8.5.12",
"chromedriver": "141.0.1",
"concat": "^1.0.3",
"cpx": "^1.5.0",
"cross-env": "^7.0.3",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
@ -53,6 +54,7 @@
"pixelmatch": "^7.1.0",
"pngjs": "^7.0.0",
"prettier": "3.3.3",
"rimraf": "^6.0.1",
"selenium-webdriver": "4.36.0",
"ts-node": "10.9.2",
"tslint": "6.1.3",
@ -83,7 +85,7 @@
"doc:serve": "npx compodoc -c ../openvidu-components-angular/projects/openvidu-components-angular/doc/.compodocrc.json --serve --port 7000",
"doc:serve-watch": "npm-watch doc:serve",
"lib:serve": "ng build openvidu-components-angular --watch",
"lib:build": "ng build openvidu-components-angular --configuration production",
"lib:build": "ng build openvidu-components-angular --configuration production && rimraf dist/openvidu-components-angular && cpx \"projects/openvidu-components-angular/dist/**/*\" dist/openvidu-components-angular",
"lib:pack": "cd ./dist/openvidu-components-angular && npm pack",
"lib:copy": "cp dist/openvidu-components-angular/openvidu-components-angular-*.tgz ../../openvidu-call/frontend",
"lib:test": "ng test openvidu-components-angular --no-watch --code-coverage",

View File

@ -1,6 +1,6 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/openvidu-components-angular",
"dest": "./dist",
"lib": {
"entryFile": "src/public-api.ts"
}

View File

@ -1,5 +1,8 @@
{
"name": "openvidu-components-angular",
"main": "dist/fesm2022/openvidu-components-angular.mjs",
"module": "dist/fesm2022/openvidu-components-angular.mjs",
"typings": "dist/index.d.ts",
"dependencies": {
"tslib": "^2.3.0"
},

View File

@ -68,6 +68,7 @@ export * from './lib/services/theme/theme.service';
export * from './lib/services/viewport/viewport.service';
//Modules
export * from './lib/openvidu-components-angular.module';
export * from './lib/config/custom-cdk-overlay';
export * from './lib/openvidu-components-angular-ui.module';
export * from 'livekit-client';