Skip to content

Commit 4754e25

Browse files
committed
chore(demo): update code for correct work
1 parent e682987 commit 4754e25

40 files changed

+9691
-10954
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,5 @@ cypress/videos*
4545
cypress/screenshots
4646
cypress/videos
4747
cypress/reports
48+
49+
.angular

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
/dist
44
/coverage
5+
.angular

.vscode/settings.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"workbench.colorCustomizations": {
3-
"activityBar.background": "#093517",
4-
"titleBar.activeBackground": "#0C4A20",
5-
"titleBar.activeForeground": "#F3FDF6"
6-
}
7-
}
2+
"workbench.colorCustomizations": {
3+
"activityBar.background": "#093517",
4+
"titleBar.activeBackground": "#0C4A20",
5+
"titleBar.activeForeground": "#F3FDF6"
6+
}
7+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![npm version](https://badge.fury.io/js/ngx-dynamic-form-builder.svg)](https://badge.fury.io/js/ngx-dynamic-form-builder)
55
[![monthly downloads](https://badgen.net/npm/dm/ngx-dynamic-form-builder)](https://www.npmjs.com/package/ngx-dynamic-form-builder)
66

7-
[FormBuilder](https://angular.io/api/forms/FormBuilder) + [class-transformer-global-storage](https://github.com/petrzjunior/class-transformer) + [class-validator-multi-lang](https://github.com/endykaufman/class-validator-multi-lang) = dynamic form group builder for [Angular12+](https://angular.io)
7+
[FormBuilder](https://angular.io/api/forms/FormBuilder) + [class-transformer-global-storage](https://github.com/petrzjunior/class-transformer) + [class-validator-multi-lang](https://github.com/endykaufman/class-validator-multi-lang) = dynamic form group builder for [Angular](https://angular.io)
88

99
## Installation
1010

apps/debug/.browserslistrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2+
# For additional information regarding the format and rule options, please see:
3+
# https://github.com/browserslist/browserslist#queries
4+
5+
# For the full list of supported browsers by the Angular framework, please see:
6+
# https://angular.io/guide/browser-support
7+
8+
# You can see what browsers were selected by your queries by running:
9+
# npx browserslist
10+
11+
last 1 Chrome version
12+
last 1 Firefox version
13+
last 2 Edge major versions
14+
last 2 Safari major versions
15+
last 2 iOS major versions
16+
Firefox ESR

apps/debug/karma.conf.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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/debug'),
29+
subdir: '.',
30+
reporters: [{ type: 'html' }, { type: 'text-summary' }],
31+
},
32+
reporters: ['progress', 'kjhtml'],
33+
port: 9876,
34+
colors: true,
35+
logLevel: config.LOG_INFO,
36+
autoWatch: true,
37+
browsers: ['Chrome'],
38+
singleRun: false,
39+
restartOnFileChange: true,
40+
});
41+
};

apps/debug/project.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,12 @@
8585
"lint": {
8686
"executor": "@nrwl/linter:eslint",
8787
"options": {
88-
"lintFilePatterns": [
89-
"apps/debug/src/**/*.ts",
90-
"apps/debug/src/**/*.html"
91-
]
88+
"lintFilePatterns": ["apps/debug/**/*.ts", "apps/debug/**/*.html"]
9289
}
9390
},
9491
"test": {
9592
"executor": "@nrwl/jest:jest",
96-
"outputs": ["{workspaceRoot}/coverage/apps/debug"],
93+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
9794
"options": {
9895
"jestConfig": "apps/debug/jest.config.ts",
9996
"passWithNoTests": true

apps/debug/src/assets/i18n/en.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"must include word \"dep\" (async validate)": "must include word \"dep\" (async validate)"
3-
}
2+
"must include word \"dep\" (async validate)": "must include word \"dep\" (async validate)"
3+
}

apps/debug/src/assets/i18n/en.po

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ msgstr ""
55
"Content-Type: text/plain; charset=utf-8\n"
66
"Content-Transfer-Encoding: 8bit\n"
77
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
8-
"POT-Creation-Date: 2022-02-09T14:15:40.891Z\n"
9-
"PO-Revision-Date: 2022-02-09T14:15:40.891Z\n"
108

119
msgid "must include word \"dep\" (async validate)"
1210
msgstr "must include word \"dep\" (async validate)"

apps/debug/src/assets/i18n/ru.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"must include word \"dep\" (async validate)": ""
3-
}
2+
"must include word \"dep\" (async validate)": ""
3+
}

0 commit comments

Comments
 (0)