Skip to content

Commit bc92dd8

Browse files
committed
ov-components: added openvidu-custom-lang tutorial
1 parent 670ec3d commit bc92dd8

File tree

21 files changed

+15214
-0
lines changed

21 files changed

+15214
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
14+
[*.md]
15+
max_line_length = off
16+
trim_trailing_whitespace = false
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# Compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
/bazel-out
8+
9+
# Node
10+
/node_modules
11+
npm-debug.log
12+
yarn-error.log
13+
14+
# IDEs and editors
15+
.idea/
16+
.project
17+
.classpath
18+
.c9/
19+
*.launch
20+
*.vscode
21+
*.angular
22+
.settings/
23+
*.sublime-workspace
24+
25+
# Visual Studio Code
26+
.vscode/*
27+
!.vscode/settings.json
28+
!.vscode/tasks.json
29+
!.vscode/launch.json
30+
!.vscode/extensions.json
31+
.history/*
32+
33+
# Miscellaneous
34+
/.angular/cache
35+
.sass-cache/
36+
/connect.lock
37+
/coverage
38+
/libpeerconnection.log
39+
testem.log
40+
/typings
41+
42+
# System files
43+
.DS_Store
44+
Thumbs.db
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# openvidu-custom-lang
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"openvidu-custom-lang": {
7+
"projectType": "application",
8+
"schematics": {
9+
"@schematics/angular:component": {
10+
"style": "scss"
11+
},
12+
"@schematics/angular:application": {
13+
"strict": true
14+
}
15+
},
16+
"root": "",
17+
"sourceRoot": "src",
18+
"prefix": "app",
19+
"architect": {
20+
"build": {
21+
"builder": "@angular-devkit/build-angular:application",
22+
"options": {
23+
"outputPath": {
24+
"base": "dist/openvidu-custom-lang"
25+
},
26+
"index": "src/index.html",
27+
"polyfills": [
28+
"src/polyfills.ts"
29+
],
30+
"tsConfig": "tsconfig.app.json",
31+
"inlineStyleLanguage": "scss",
32+
"assets": [
33+
"src/favicon.ico",
34+
"src/assets"
35+
],
36+
"styles": [
37+
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
38+
"src/styles.scss"
39+
],
40+
"scripts": [],
41+
"browser": "src/main.ts"
42+
},
43+
"configurations": {
44+
"production": {
45+
"budgets": [
46+
{
47+
"type": "initial",
48+
"maximumWarning": "500kb",
49+
"maximumError": "5mb"
50+
},
51+
{
52+
"type": "anyComponentStyle",
53+
"maximumWarning": "2kb",
54+
"maximumError": "4kb"
55+
}
56+
],
57+
"fileReplacements": [
58+
{
59+
"replace": "src/environments/environment.ts",
60+
"with": "src/environments/environment.prod.ts"
61+
}
62+
],
63+
"outputHashing": "all"
64+
},
65+
"development": {
66+
"optimization": false,
67+
"extractLicenses": false,
68+
"sourceMap": true,
69+
"namedChunks": true
70+
}
71+
},
72+
"defaultConfiguration": "production"
73+
},
74+
"serve": {
75+
"builder": "@angular-devkit/build-angular:dev-server",
76+
"configurations": {
77+
"production": {
78+
"buildTarget": "openvidu-custom-lang:build:production"
79+
},
80+
"development": {
81+
"buildTarget": "openvidu-custom-lang:build:development"
82+
}
83+
},
84+
"defaultConfiguration": "development"
85+
},
86+
"extract-i18n": {
87+
"builder": "@angular-devkit/build-angular:extract-i18n",
88+
"options": {
89+
"buildTarget": "openvidu-custom-lang:build"
90+
}
91+
},
92+
"test": {
93+
"builder": "@angular-devkit/build-angular:karma",
94+
"options": {
95+
"main": "src/test.ts",
96+
"polyfills": "src/polyfills.ts",
97+
"tsConfig": "tsconfig.spec.json",
98+
"karmaConfig": "karma.conf.js",
99+
"inlineStyleLanguage": "scss",
100+
"assets": [
101+
"src/favicon.ico",
102+
"src/assets"
103+
],
104+
"styles": [
105+
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
106+
"src/styles.scss"
107+
],
108+
"scripts": []
109+
}
110+
}
111+
}
112+
}
113+
},
114+
"cli": {
115+
"analytics": false
116+
}
117+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Karma configuration file, see link for more information
2+
// https://karma-runner.github.io/1.0/config/configuration-file.html
3+
4+
module.exports = function (config) {
5+
config.set({
6+
basePath: '',
7+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
8+
plugins: [
9+
require('karma-jasmine'),
10+
require('karma-chrome-launcher'),
11+
require('karma-jasmine-html-reporter'),
12+
require('karma-coverage'),
13+
require('@angular-devkit/build-angular/plugins/karma')
14+
],
15+
client: {
16+
jasmine: {
17+
// you can add configuration options for Jasmine here
18+
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
19+
// for example, you can disable the random execution with `random: false`
20+
// or set a specific seed with `seed: 4321`
21+
},
22+
clearContext: false // leave Jasmine Spec Runner output visible in browser
23+
},
24+
jasmineHtmlReporter: {
25+
suppressAll: true // removes the duplicated traces
26+
},
27+
coverageReporter: {
28+
dir: require('path').join(__dirname, './coverage/openvidu-custom-lang'),
29+
subdir: '.',
30+
reporters: [
31+
{ type: 'html' },
32+
{ type: 'text-summary' }
33+
]
34+
},
35+
reporters: ['progress', 'kjhtml'],
36+
port: 9876,
37+
colors: true,
38+
logLevel: config.LOG_INFO,
39+
autoWatch: true,
40+
browsers: ['Chrome'],
41+
singleRun: false,
42+
restartOnFileChange: true
43+
});
44+
};

0 commit comments

Comments
 (0)