mirror of https://github.com/OpenVidu/openvidu.git
openvidu-components: Renamed library to openvidu-angular
parent
3fa674efd6
commit
673058381f
|
@ -10,21 +10,21 @@ openvidu-components-angular
|
||||||
│
|
│
|
||||||
└───projects
|
└───projects
|
||||||
│
|
│
|
||||||
└─── openvidu-components-angular
|
└─── openvidu-angular
|
||||||
```
|
```
|
||||||
|
|
||||||
## Development server
|
## Development server
|
||||||
|
|
||||||
Run `ng serve` for a dev 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
|
## Code scaffolding
|
||||||
|
|
||||||
For generate new components in openvidu-components-angular:
|
For generate new components in openvidu-angular:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
ng g component components/component-name --project=openvidu-components-angular
|
ng g component components/component-name --project=openvidu-angular
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -137,23 +137,23 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"openvidu-components-angular": {
|
"openvidu-angular": {
|
||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"root": "projects/openvidu-components-angular",
|
"root": "projects/openvidu-angular",
|
||||||
"sourceRoot": "projects/openvidu-components-angular/src",
|
"sourceRoot": "projects/openvidu-angular/src",
|
||||||
"prefix": "ov",
|
"prefix": "ov",
|
||||||
"architect": {
|
"architect": {
|
||||||
"build": {
|
"build": {
|
||||||
"builder": "@angular-devkit/build-angular:ng-packagr",
|
"builder": "@angular-devkit/build-angular:ng-packagr",
|
||||||
"options": {
|
"options": {
|
||||||
"project": "projects/openvidu-components-angular/ng-package.json"
|
"project": "projects/openvidu-angular/ng-package.json"
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"production": {
|
"production": {
|
||||||
"tsConfig": "projects/openvidu-components-angular/tsconfig.lib.prod.json"
|
"tsConfig": "projects/openvidu-angular/tsconfig.lib.prod.json"
|
||||||
},
|
},
|
||||||
"development": {
|
"development": {
|
||||||
"tsConfig": "projects/openvidu-components-angular/tsconfig.lib.json"
|
"tsConfig": "projects/openvidu-angular/tsconfig.lib.json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"defaultConfiguration": "production"
|
"defaultConfiguration": "production"
|
||||||
|
@ -161,9 +161,9 @@
|
||||||
"test": {
|
"test": {
|
||||||
"builder": "@angular-devkit/build-angular:karma",
|
"builder": "@angular-devkit/build-angular:karma",
|
||||||
"options": {
|
"options": {
|
||||||
"main": "projects/openvidu-components-angular/src/test.ts",
|
"main": "projects/openvidu-angular/src/test.ts",
|
||||||
"tsConfig": "projects/openvidu-components-angular/tsconfig.spec.json",
|
"tsConfig": "projects/openvidu-angular/tsconfig.spec.json",
|
||||||
"karmaConfig": "projects/openvidu-components-angular/karma.conf.js"
|
"karmaConfig": "projects/openvidu-angular/karma.conf.js"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,11 +4,10 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"ng": "ng",
|
"ng": "ng",
|
||||||
"start": "ng serve --configuration development",
|
"start": "ng serve --configuration development",
|
||||||
"lib:serve": "ng build openvidu-components-angular --watch",
|
"lib:serve": "ng build openvidu-angular --watch",
|
||||||
"lib:build": "ng build openvidu-components-angular --configuration production && cd ./dist/openvidu-components-angular && npm pack",
|
"lib:build": "ng build openvidu-angular --configuration production && cd ./dist/openvidu-angular && npm pack",
|
||||||
"lib:copy": "cp dist/openvidu-components-angular/openvidu-components-angular-*.tgz ../openvidu-tutorials/openvidu-angular-components",
|
"lib:copy": "cp dist/openvidu-angular/openvidu-angular-*.tgz ../openvidu-tutorials/openvidu-angular-components",
|
||||||
"lib:test": "ng test openvidu-components-angular --no-watch --code-coverage",
|
"lib:test": "ng test openvidu-angular --no-watch --code-coverage",
|
||||||
"lib:singleTest": "ng test openvidu-components-angular --include=**/action.service.spec.ts",
|
|
||||||
"lint": "ng lint",
|
"lint": "ng lint",
|
||||||
"e2e": "ng e2e"
|
"e2e": "ng e2e"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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
|
This library is an Angular library based on Angular projections
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ Importing library module in yout `app.module.ts`
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
OpenviduComponentsAngularModule.forRoot({
|
OpenviduAngularModule.forRoot({
|
||||||
environment: environment
|
environment: environment
|
||||||
}),
|
}),
|
||||||
...
|
...
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
|
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
|
||||||
"dest": "../../dist/openvidu-components-angular",
|
"dest": "../../dist/openvidu-angular",
|
||||||
"lib": {
|
"lib": {
|
||||||
"entryFile": "src/public-api.ts"
|
"entryFile": "src/public-api.ts"
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "openvidu-components-angular",
|
"name": "openvidu-angular",
|
||||||
"version": "0.0.1",
|
"version": "2.20.0",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/animations": "^13.0.0",
|
"@angular/animations": "^13.0.0",
|
||||||
"@angular/common": "^13.0.0",
|
"@angular/common": "^13.0.0",
|
|
@ -136,13 +136,13 @@ import { ParticipantPanelComponent } from './components/participants-panel/parti
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
export class OpenviduComponentsAngularModule {
|
export class OpenviduAngularModule {
|
||||||
static forRoot(environment): ModuleWithProviders<OpenviduComponentsAngularModule> {
|
static forRoot(environment): ModuleWithProviders<OpenviduAngularModule> {
|
||||||
|
|
||||||
// console.log(`${library.name} config: ${environment}`);
|
// console.log(`${library.name} config: ${environment}`);
|
||||||
const libConfig: LibConfig = { environment };
|
const libConfig: LibConfig = { environment };
|
||||||
return {
|
return {
|
||||||
ngModule: OpenviduComponentsAngularModule,
|
ngModule: OpenviduAngularModule,
|
||||||
providers: [LibraryConfigService , {provide: 'LIB_CONFIG', useValue: libConfig}]
|
providers: [LibraryConfigService , {provide: 'LIB_CONFIG', useValue: libConfig}]
|
||||||
};
|
};
|
||||||
}
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue