Skip to content

Commit a4513f7

Browse files
authored
Merge pull request #25 from FalconSoft/dev
Dev
2 parents 0fb295b + d91431f commit a4513f7

File tree

145 files changed

+1640
-2447
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+1640
-2447
lines changed

.eslintrc.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": [
4+
"projects/**/*"
5+
],
6+
"overrides": [
7+
{
8+
"files": [
9+
"*.ts"
10+
],
11+
"parserOptions": {
12+
"project": [
13+
"tsconfig.json",
14+
"e2e/tsconfig.e2e.json"
15+
],
16+
"createDefaultProgram": true
17+
},
18+
"extends": [
19+
"plugin:@angular-eslint/ng-cli-compat",
20+
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
21+
"plugin:@angular-eslint/template/process-inline-templates"
22+
],
23+
"rules": {
24+
"@typescript-eslint/explicit-member-accessibility": [
25+
"off",
26+
{
27+
"accessibility": "explicit"
28+
}
29+
],
30+
"arrow-parens": [
31+
"off",
32+
"always"
33+
],
34+
"import/order": "off",
35+
"@typescript-eslint/member-ordering": "off",
36+
"prefer-arrow/prefer-arrow-functions": "off",
37+
"@angular-eslint/component-selector": "off",
38+
"@angular-eslint/directive-selector": "off"
39+
}
40+
},
41+
{
42+
"files": [
43+
"*.html"
44+
],
45+
"extends": [
46+
"plugin:@angular-eslint/template/recommended"
47+
],
48+
"rules": {}
49+
}
50+
]
51+
}

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
# dependencies
1111
/node_modules
1212

13+
package-lock.json
14+
1315
# profiling files
1416
chrome-profiler-events.json
1517
speed-measure-plugin.json
@@ -32,6 +34,7 @@ speed-measure-plugin.json
3234
.history/*
3335

3436
# misc
37+
/.angular/cache
3538
/.sass-cache
3639
/connect.lock
3740
/coverage
@@ -44,5 +47,3 @@ testem.log
4447
# System Files
4548
.DS_Store
4649
Thumbs.db
47-
48-
package-lock.json

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run lint

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Any web content can be dynamically rendered from JSON or XML based configuration
77
We have three libraries to offer
88
- [**@ngx-dynamic-components/core**](https://github.com/FalconSoft/ngx-dynamic-components/tree/master/projects/core) - a core dynamic rendering engine with no dependencies to any external library. And contains all basic HTML components.
99
- [**@ngx-dynamic-components/bootstrap**](https://github.com/FalconSoft/ngx-dynamic-components/tree/master/projects/bootstrap) - a set of bootstrap based components. This project has dependencies to the [ngx-bootstrap](https://valor-software.com/ngx-bootstrap)
10-
- [**@ngx-dynamic-components/material**](https://github.com/FalconSoft/ngx-dynamic-components/tree/master/projects/material) - a set of [Angular Material Components](https://material.angular.io/)
1110

1211
## Getting started
1312

@@ -41,7 +40,7 @@ import { ComponentEvent } from '@ngx-dynamic-components/core';
4140
selector: 'app-root',
4241
template: `
4342
<ngx-dynamic-component
44-
[uiModel]='uiModel'
43+
[xmlUIModel]='xmlUIModel'
4544
[dataModel]='dataModel'
4645
(eventHandlers)="eventHandlers($event)">
4746
</ngx-dynamic-component>
@@ -80,7 +79,7 @@ import { ComponentEvent } from '@ngx-dynamic-components/core';
8079
encapsulation: ViewEncapsulation.None
8180
})
8281
export class AppComponent {
83-
uiModel = `
82+
xmlUIModel = `
8483
<div class="container">
8584
<form onSubmit="save(data)">
8685
<label>First Name</label>

angular.json

Lines changed: 60 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
"assets": [
2727
"src/favicon.ico",
2828
"src/assets",
29-
{ "glob": "README.md", "input": "./", "output": "/" }
29+
{
30+
"glob": "README.md",
31+
"input": "./",
32+
"output": "/"
33+
}
3034
],
3135
"styles": [
3236
"node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
@@ -37,22 +41,33 @@
3741
"scripts": [
3842
{
3943
"input": "node_modules/ace-builds/src-noconflict/ace.js",
40-
"bundleName": "ace-editor"
44+
"bundleName": "ace-editor",
45+
"inject": true
4146
},
4247
{
43-
"input": "node_modules/ace-builds/src-noconflict/mode-json.js"
48+
"input": "node_modules/ace-builds/src-noconflict/mode-json.js",
49+
"inject": true
4450
},
4551
{
46-
"input": "node_modules/ace-builds/src-noconflict/mode-xml.js"
52+
"input": "node_modules/ace-builds/src-noconflict/mode-xml.js",
53+
"inject": true
4754
},
4855
{
49-
"input": "node_modules/jspython-interpreter/dist/assets/mode-jspython.js"
56+
"input": "node_modules/jspython-interpreter/dist/assets/mode-jspython.js",
57+
"inject": true
5058
},
5159
{
52-
"input": "node_modules/ace-builds/src-noconflict/ext-language_tools.js"
60+
"input": "node_modules/ace-builds/src-noconflict/ext-language_tools.js",
61+
"inject": true
5362
},
54-
"node_modules/marked/lib/marked.js"
55-
]
63+
"node_modules/marked/marked.min.js"
64+
],
65+
"vendorChunk": true,
66+
"extractLicenses": false,
67+
"buildOptimizer": false,
68+
"sourceMap": true,
69+
"optimization": false,
70+
"namedChunks": true
5671
},
5772
"configurations": {
5873
"production": {
@@ -65,9 +80,7 @@
6580
"optimization": true,
6681
"outputHashing": "all",
6782
"sourceMap": false,
68-
"extractCss": true,
6983
"namedChunks": false,
70-
"aot": true,
7184
"extractLicenses": true,
7285
"vendorChunk": false,
7386
"buildOptimizer": true,
@@ -82,8 +95,15 @@
8295
"maximumWarning": "6kb"
8396
}
8497
]
98+
},
99+
"development": {
100+
"tsConfig": "./tsconfig.dev.json"
101+
},
102+
"fix": {
103+
"tsConfig": "./tsconfig.fix.json"
85104
}
86-
}
105+
},
106+
"defaultConfiguration": ""
87107
},
88108
"serve": {
89109
"builder": "@angular-devkit/build-angular:dev-server",
@@ -93,6 +113,12 @@
93113
"configurations": {
94114
"production": {
95115
"browserTarget": "ngx-dynamic-components:build:production"
116+
},
117+
"development": {
118+
"browserTarget": "ngx-dynamic-components:build:development"
119+
},
120+
"fix": {
121+
"browserTarget": "ngx-dynamic-components:build:fix"
96122
}
97123
}
98124
},
@@ -121,14 +147,11 @@
121147
}
122148
},
123149
"lint": {
124-
"builder": "@angular-devkit/build-angular:tslint",
150+
"builder": "@angular-eslint/builder:lint",
125151
"options": {
126-
"tsConfig": [
127-
"src/tsconfig.app.json",
128-
"src/tsconfig.spec.json"
129-
],
130-
"exclude": [
131-
"**/node_modules/**"
152+
"lintFilePatterns": [
153+
"src/**/*.ts",
154+
"src/**/*.html"
132155
]
133156
}
134157
}
@@ -152,11 +175,11 @@
152175
}
153176
},
154177
"lint": {
155-
"builder": "@angular-devkit/build-angular:tslint",
178+
"builder": "@angular-eslint/builder:lint",
156179
"options": {
157-
"tsConfig": "e2e/tsconfig.e2e.json",
158-
"exclude": [
159-
"**/node_modules/**"
180+
"lintFilePatterns": [
181+
"e2e//**/*.ts",
182+
"e2e//**/*.html"
160183
]
161184
}
162185
}
@@ -169,7 +192,7 @@
169192
"prefix": "dc",
170193
"architect": {
171194
"build": {
172-
"builder": "@angular-devkit/build-ng-packagr:build",
195+
"builder": "@angular-devkit/build-angular:ng-packagr",
173196
"options": {
174197
"tsConfig": "projects/core/tsconfig.lib.json",
175198
"project": "projects/core/ng-package.json"
@@ -189,54 +212,11 @@
189212
}
190213
},
191214
"lint": {
192-
"builder": "@angular-devkit/build-angular:tslint",
215+
"builder": "@angular-eslint/builder:lint",
193216
"options": {
194-
"tsConfig": [
195-
"projects/core/tsconfig.lib.json",
196-
"projects/core/tsconfig.spec.json"
197-
],
198-
"exclude": [
199-
"**/node_modules/**"
200-
]
201-
}
202-
}
203-
}
204-
},
205-
"material": {
206-
"root": "projects/material",
207-
"sourceRoot": "projects/material/src",
208-
"projectType": "library",
209-
"prefix": "dc",
210-
"architect": {
211-
"build": {
212-
"builder": "@angular-devkit/build-ng-packagr:build",
213-
"options": {
214-
"tsConfig": "projects/material/tsconfig.lib.json",
215-
"project": "projects/material/ng-package.json"
216-
},
217-
"configurations": {
218-
"production": {
219-
"tsConfig": "projects/material/tsconfig.lib.prod.json"
220-
}
221-
}
222-
},
223-
"test": {
224-
"builder": "@angular-devkit/build-angular:karma",
225-
"options": {
226-
"main": "projects/material/src/test.ts",
227-
"tsConfig": "projects/material/tsconfig.spec.json",
228-
"karmaConfig": "projects/material/karma.conf.js"
229-
}
230-
},
231-
"lint": {
232-
"builder": "@angular-devkit/build-angular:tslint",
233-
"options": {
234-
"tsConfig": [
235-
"projects/material/tsconfig.lib.json",
236-
"projects/material/tsconfig.spec.json"
237-
],
238-
"exclude": [
239-
"**/node_modules/**"
217+
"lintFilePatterns": [
218+
"projects/core/**/*.ts",
219+
"projects/core/**/*.html"
240220
]
241221
}
242222
}
@@ -249,7 +229,7 @@
249229
"prefix": "dc",
250230
"architect": {
251231
"build": {
252-
"builder": "@angular-devkit/build-ng-packagr:build",
232+
"builder": "@angular-devkit/build-angular:ng-packagr",
253233
"options": {
254234
"tsConfig": "projects/tools/tsconfig.lib.json",
255235
"project": "projects/tools/ng-package.json"
@@ -270,14 +250,11 @@
270250
}
271251
},
272252
"lint": {
273-
"builder": "@angular-devkit/build-angular:tslint",
253+
"builder": "@angular-eslint/builder:lint",
274254
"options": {
275-
"tsConfig": [
276-
"projects/tools/tsconfig.lib.json",
277-
"projects/tools/tsconfig.spec.json"
278-
],
279-
"exclude": [
280-
"**/node_modules/**"
255+
"lintFilePatterns": [
256+
"projects/tools/**/*.ts",
257+
"projects/tools/**/*.html"
281258
]
282259
}
283260
}
@@ -290,7 +267,7 @@
290267
"prefix": "dc",
291268
"architect": {
292269
"build": {
293-
"builder": "@angular-devkit/build-ng-packagr:build",
270+
"builder": "@angular-devkit/build-angular:ng-packagr",
294271
"options": {
295272
"tsConfig": "projects/bootstrap/tsconfig.lib.json",
296273
"project": "projects/bootstrap/ng-package.json"
@@ -310,14 +287,11 @@
310287
}
311288
},
312289
"lint": {
313-
"builder": "@angular-devkit/build-angular:tslint",
290+
"builder": "@angular-eslint/builder:lint",
314291
"options": {
315-
"tsConfig": [
316-
"projects/bootstrap/tsconfig.lib.json",
317-
"projects/bootstrap/tsconfig.spec.json"
318-
],
319-
"exclude": [
320-
"**/node_modules/**"
292+
"lintFilePatterns": [
293+
"projects/bootstrap/**/*.ts",
294+
"projects/bootstrap/**/*.html"
321295
]
322296
}
323297
}

browserslist

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
last 2 versions
99
Firefox ESR
1010
not dead
11-
not IE 9-11
11+
not IE 9-11
12+
not safari 15.2-15.3

0 commit comments

Comments
 (0)