openvidu-components: Renamed library to openvidu-angular

pull/685/head
csantosm 2022-01-20 09:58:12 +01:00
parent 3fa674efd6
commit 673058381f
118 changed files with 35 additions and 36 deletions

View File

@ -10,21 +10,21 @@ openvidu-components-angular
└───projects
└─── openvidu-components-angular
└─── openvidu-angular
```
## Development server
Run `ng serve` for a dev server.
Run, in a new terminal, `npm run lib:serve` for serving the openvidu-components-angular library with live reload
Run, in a new terminal, `npm run lib:serve` for serving the openvidu-angular library with live reload
## Code scaffolding
For generate new components in openvidu-components-angular:
For generate new components in openvidu-angular:
```bash
ng g component components/component-name --project=openvidu-components-angular
ng g component components/component-name --project=openvidu-angular
```

View File

@ -137,23 +137,23 @@
}
}
},
"openvidu-components-angular": {
"openvidu-angular": {
"projectType": "library",
"root": "projects/openvidu-components-angular",
"sourceRoot": "projects/openvidu-components-angular/src",
"root": "projects/openvidu-angular",
"sourceRoot": "projects/openvidu-angular/src",
"prefix": "ov",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/openvidu-components-angular/ng-package.json"
"project": "projects/openvidu-angular/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/openvidu-components-angular/tsconfig.lib.prod.json"
"tsConfig": "projects/openvidu-angular/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/openvidu-components-angular/tsconfig.lib.json"
"tsConfig": "projects/openvidu-angular/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
@ -161,9 +161,9 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/openvidu-components-angular/src/test.ts",
"tsConfig": "projects/openvidu-components-angular/tsconfig.spec.json",
"karmaConfig": "projects/openvidu-components-angular/karma.conf.js"
"main": "projects/openvidu-angular/src/test.ts",
"tsConfig": "projects/openvidu-angular/tsconfig.spec.json",
"karmaConfig": "projects/openvidu-angular/karma.conf.js"
}
}
}

View File

@ -4,11 +4,10 @@
"scripts": {
"ng": "ng",
"start": "ng serve --configuration development",
"lib:serve": "ng build openvidu-components-angular --watch",
"lib:build": "ng build openvidu-components-angular --configuration production && cd ./dist/openvidu-components-angular && npm pack",
"lib:copy": "cp dist/openvidu-components-angular/openvidu-components-angular-*.tgz ../openvidu-tutorials/openvidu-angular-components",
"lib:test": "ng test openvidu-components-angular --no-watch --code-coverage",
"lib:singleTest": "ng test openvidu-components-angular --include=**/action.service.spec.ts",
"lib:serve": "ng build openvidu-angular --watch",
"lib:build": "ng build openvidu-angular --configuration production && cd ./dist/openvidu-angular && npm pack",
"lib:copy": "cp dist/openvidu-angular/openvidu-angular-*.tgz ../openvidu-tutorials/openvidu-angular-components",
"lib:test": "ng test openvidu-angular --no-watch --code-coverage",
"lint": "ng lint",
"e2e": "ng e2e"
},

View File

@ -1,6 +1,6 @@
# openvidu-components-angular
# openvidu-angular
openvidu-components-angular is a library generated with the aim of facilitate the customization of videconference app provides by OpenVidu, providing powerful ready-to-use components.
openvidu-angular is a library generated with the aim of facilitate the customization of videconference app provides by OpenVidu, providing powerful ready-to-use components.
This library is an Angular library based on Angular projections
@ -28,7 +28,7 @@ Importing library module in yout `app.module.ts`
@NgModule({
imports: [
BrowserModule,
OpenviduComponentsAngularModule.forRoot({
OpenviduAngularModule.forRoot({
environment: environment
}),
...

View File

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

View File

@ -1,6 +1,6 @@
{
"name": "openvidu-components-angular",
"version": "0.0.1",
"name": "openvidu-angular",
"version": "2.20.0",
"peerDependencies": {
"@angular/animations": "^13.0.0",
"@angular/common": "^13.0.0",

View File

@ -136,13 +136,13 @@ import { ParticipantPanelComponent } from './components/participants-panel/parti
})
export class OpenviduComponentsAngularModule {
static forRoot(environment): ModuleWithProviders<OpenviduComponentsAngularModule> {
export class OpenviduAngularModule {
static forRoot(environment): ModuleWithProviders<OpenviduAngularModule> {
// console.log(`${library.name} config: ${environment}`);
const libConfig: LibConfig = { environment };
return {
ngModule: OpenviduComponentsAngularModule,
ngModule: OpenviduAngularModule,
providers: [LibraryConfigService , {provide: 'LIB_CONFIG', useValue: libConfig}]
};
}

Some files were not shown because too many files have changed in this diff Show More