Skip to content

Commit fb52bba

Browse files
authored
Merge pull request #31 from gund/feat-ng-update
[Feat] Update to Angular v14
2 parents 7ff857f + 9dc0eb3 commit fb52bba

34 files changed

+35741
-19459
lines changed

.eslintrc.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["projects/**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts"],
7+
"parserOptions": {
8+
"project": ["tsconfig.json", "e2e/tsconfig.json"],
9+
"createDefaultProgram": true
10+
},
11+
"extends": [
12+
"plugin:@angular-eslint/ng-cli-compat",
13+
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
14+
"plugin:@angular-eslint/template/process-inline-templates"
15+
],
16+
"rules": {
17+
"prefer-arrow/prefer-arrow-functions": "off"
18+
}
19+
},
20+
{
21+
"files": ["*.html"],
22+
"extends": ["plugin:@angular-eslint/template/recommended"],
23+
"rules": {}
24+
}
25+
]
26+
}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ speed-measure-plugin*.json
3232
.history/*
3333

3434
# misc
35+
/.angular/cache
3536
/.sass-cache
3637
/connect.lock
3738
/coverage

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
legacy-peer-deps=true

.vscode/settings.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"angular.enable-strict-mode-prompt": false,
3+
"typescript.tsdk": "node_modules/typescript/lib"
4+
}

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
| Angular | ngx-element-boundary | NPM package |
99
| ------- | -------------------- | ----------------------------- |
10+
| 14.x.x | 2.x.x | `ngx-element-boundary@^2.0.0` |
1011
| 10.x.x | 1.x.x | `ngx-element-boundary@^1.0.0` |
1112
| 9.x.x | 1.x.x | `ngx-element-boundary@^1.0.0` |
1213

angular.json

+20-15
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"prefix": "neb",
1111
"architect": {
1212
"build": {
13-
"builder": "@angular-devkit/build-ng-packagr:build",
13+
"builder": "@angular-devkit/build-angular:ng-packagr",
1414
"options": {
1515
"tsConfig": "projects/ngx-element-boundary/tsconfig.lib.json",
1616
"project": "projects/ngx-element-boundary/ng-package.json"
@@ -26,13 +26,12 @@
2626
"options": {}
2727
},
2828
"lint": {
29-
"builder": "@angular-devkit/build-angular:tslint",
29+
"builder": "@angular-eslint/builder:lint",
3030
"options": {
31-
"tsConfig": [
32-
"projects/ngx-element-boundary/tsconfig.lib.json",
33-
"projects/ngx-element-boundary/tsconfig.spec.json"
34-
],
35-
"exclude": ["**/node_modules/**"]
31+
"lintFilePatterns": [
32+
"projects/ngx-element-boundary/**/*.ts",
33+
"projects/ngx-element-boundary/**/*.html"
34+
]
3635
}
3736
}
3837
}
@@ -57,9 +56,7 @@
5756
"@schematics/angular:interceptor": {
5857
"skipTests": true
5958
},
60-
"@schematics/angular:module": {
61-
"skipTests": true
62-
},
59+
"@schematics/angular:module": {},
6360
"@schematics/angular:pipe": {
6461
"skipTests": true
6562
},
@@ -79,13 +76,18 @@
7976
"main": "projects/demo/src/main.ts",
8077
"polyfills": "projects/demo/src/polyfills.ts",
8178
"tsConfig": "projects/demo/tsconfig.app.json",
82-
"aot": true,
8379
"assets": [
8480
"projects/demo/src/favicon.ico",
8581
"projects/demo/src/assets"
8682
],
8783
"styles": ["projects/demo/src/styles.css"],
88-
"scripts": []
84+
"scripts": [],
85+
"vendorChunk": true,
86+
"extractLicenses": false,
87+
"buildOptimizer": false,
88+
"sourceMap": true,
89+
"optimization": false,
90+
"namedChunks": true
8991
},
9092
"configurations": {
9193
"production": {
@@ -98,7 +100,6 @@
98100
"optimization": true,
99101
"outputHashing": "all",
100102
"sourceMap": false,
101-
"extractCss": true,
102103
"namedChunks": false,
103104
"extractLicenses": true,
104105
"vendorChunk": false,
@@ -116,7 +117,8 @@
116117
}
117118
]
118119
}
119-
}
120+
},
121+
"defaultConfiguration": "production"
120122
},
121123
"serve": {
122124
"builder": "@angular-devkit/build-angular:dev-server",
@@ -138,5 +140,8 @@
138140
}
139141
}
140142
},
141-
"defaultProject": "ngx-element-boundary"
143+
"cli": {
144+
"analytics": false,
145+
"schematicCollections": ["@angular-eslint/schematics"]
146+
}
142147
}

0 commit comments

Comments
 (0)