Skip to content

Commit e3f7c5a

Browse files
committed
chore: Update deps - Angular 13
1 parent 5aa9bb1 commit e3f7c5a

39 files changed

+8406
-36499
lines changed

.browserslistrc

-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@ last 2 Edge major versions
1414
last 2 Safari major versions
1515
last 2 iOS major versions
1616
Firefox ESR
17-
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.

.eslintrc.json

+8-10
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,29 @@
1010
],
1111
"parserOptions": {
1212
"project": [
13-
"tsconfig.json",
14-
"e2e/tsconfig.json"
13+
"tsconfig.json"
1514
],
1615
"createDefaultProgram": true
1716
},
1817
"extends": [
19-
"plugin:@angular-eslint/ng-cli-compat",
20-
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
18+
"plugin:@angular-eslint/recommended",
2119
"plugin:@angular-eslint/template/process-inline-templates"
2220
],
2321
"rules": {
24-
"@angular-eslint/component-selector": [
22+
"@angular-eslint/directive-selector": [
2523
"error",
2624
{
27-
"type": "element",
25+
"type": "attribute",
2826
"prefix": "app",
29-
"style": "kebab-case"
27+
"style": "camelCase"
3028
}
3129
],
32-
"@angular-eslint/directive-selector": [
30+
"@angular-eslint/component-selector": [
3331
"error",
3432
{
35-
"type": "attribute",
33+
"type": "element",
3634
"prefix": "app",
37-
"style": "camelCase"
35+
"style": "kebab-case"
3836
}
3937
]
4038
}

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ jobs:
3939
- name: Linting
4040
run: npx ng lint
4141
- name: Build lib
42-
run: npx ng build ngx-ui-loader --prod
42+
run: npx ng build ngx-ui-loader
4343
- name: Testing
4444
run: npm test
4545
- name: Upload codecov report
4646
uses: codecov/codecov-action@v1
4747
- name: Production build
48-
run: npx ng build --prod
48+
run: npx ng build

.gitignore

+10-15
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,42 @@
11
# See http://help.github.com/ignore-files/ for more about ignoring files.
22

3-
# compiled output
3+
# Compiled output
44
/dist
55
/tmp
66
/out-tsc
7-
# Only exists if Bazel was run
87
/bazel-out
98

10-
# dependencies
9+
# Node
1110
/node_modules
12-
13-
# profiling files
14-
chrome-profiler-events*.json
15-
speed-measure-plugin*.json
11+
npm-debug.log
12+
yarn-error.log
1613

1714
# IDEs and editors
18-
/.idea
15+
.idea/
1916
.project
2017
.classpath
2118
.c9/
2219
*.launch
2320
.settings/
2421
*.sublime-workspace
2522

26-
# IDE - VSCode
23+
# Visual Studio Code
2724
.vscode/*
2825
!.vscode/settings.json
2926
!.vscode/tasks.json
3027
!.vscode/launch.json
3128
!.vscode/extensions.json
3229
.history/*
3330

34-
# misc
35-
/.sass-cache
31+
# Miscellaneous
32+
/.angular/cache
33+
.sass-cache/
3634
/connect.lock
3735
/coverage
3836
/libpeerconnection.log
39-
npm-debug.log
40-
yarn-error.log
4137
testem.log
4238
/typings
43-
.eslintcache
4439

45-
# System Files
40+
# System files
4641
.DS_Store
4742
Thumbs.db

.vscode/extensions.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3+
"recommendations": ["angular.ng-template"]
4+
}

.vscode/launch.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3+
"version": "0.2.0",
4+
"configurations": [
5+
{
6+
"name": "ng serve",
7+
"type": "pwa-chrome",
8+
"request": "launch",
9+
"preLaunchTask": "npm: start",
10+
"url": "http://localhost:4200/"
11+
},
12+
{
13+
"name": "ng test",
14+
"type": "chrome",
15+
"request": "launch",
16+
"preLaunchTask": "npm: test",
17+
"url": "http://localhost:9876/debug.html"
18+
}
19+
]
20+
}

.vscode/tasks.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
3+
"version": "2.0.0",
4+
"tasks": [
5+
{
6+
"type": "npm",
7+
"script": "start",
8+
"isBackground": true,
9+
"problemMatcher": {
10+
"owner": "typescript",
11+
"pattern": "$tsc",
12+
"background": {
13+
"activeOnStart": true,
14+
"beginsPattern": {
15+
"regexp": "(.*?)"
16+
},
17+
"endsPattern": {
18+
"regexp": "bundle generation complete"
19+
}
20+
}
21+
}
22+
},
23+
{
24+
"type": "npm",
25+
"script": "test",
26+
"isBackground": true,
27+
"problemMatcher": {
28+
"owner": "typescript",
29+
"pattern": "$tsc",
30+
"background": {
31+
"activeOnStart": true,
32+
"beginsPattern": {
33+
"regexp": "(.*?)"
34+
},
35+
"endsPattern": {
36+
"regexp": "bundle generation complete"
37+
}
38+
}
39+
}
40+
}
41+
]
42+
}

angular.json

+33-34
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"schematics": {
99
"@schematics/angular:component": {
1010
"style": "scss"
11+
},
12+
"@schematics/angular:application": {
13+
"strict": true
1114
}
1215
},
1316
"root": "",
@@ -22,7 +25,7 @@
2225
"main": "src/main.ts",
2326
"polyfills": "src/polyfills.ts",
2427
"tsConfig": "tsconfig.app.json",
25-
"aot": true,
28+
"inlineStyleLanguage": "scss",
2629
"assets": [
2730
"src/favicon.ico",
2831
"src/assets"
@@ -35,19 +38,6 @@
3538
},
3639
"configurations": {
3740
"production": {
38-
"fileReplacements": [
39-
{
40-
"replace": "src/environments/environment.ts",
41-
"with": "src/environments/environment.prod.ts"
42-
}
43-
],
44-
"optimization": true,
45-
"outputHashing": "all",
46-
"sourceMap": false,
47-
"namedChunks": false,
48-
"extractLicenses": true,
49-
"vendorChunk": false,
50-
"buildOptimizer": true,
5141
"budgets": [
5242
{
5343
"type": "initial",
@@ -59,20 +49,37 @@
5949
"maximumWarning": "30kb",
6050
"maximumError": "35kb"
6151
}
62-
]
52+
],
53+
"fileReplacements": [
54+
{
55+
"replace": "src/environments/environment.ts",
56+
"with": "src/environments/environment.prod.ts"
57+
}
58+
],
59+
"outputHashing": "all"
60+
},
61+
"development": {
62+
"buildOptimizer": false,
63+
"optimization": false,
64+
"vendorChunk": true,
65+
"extractLicenses": false,
66+
"sourceMap": true,
67+
"namedChunks": true
6368
}
64-
}
69+
},
70+
"defaultConfiguration": "production"
6571
},
6672
"serve": {
6773
"builder": "@angular-devkit/build-angular:dev-server",
68-
"options": {
69-
"browserTarget": "ngx-ui-loader-app:build"
70-
},
7174
"configurations": {
7275
"production": {
7376
"browserTarget": "ngx-ui-loader-app:build:production"
77+
},
78+
"development": {
79+
"browserTarget": "ngx-ui-loader-app:build:development"
7480
}
75-
}
81+
},
82+
"defaultConfiguration": "development"
7683
},
7784
"extract-i18n": {
7885
"builder": "@angular-devkit/build-angular:extract-i18n",
@@ -87,6 +94,7 @@
8794
"polyfills": "src/polyfills.ts",
8895
"tsConfig": "tsconfig.spec.json",
8996
"karmaConfig": "karma.conf.js",
97+
"inlineStyleLanguage": "scss",
9098
"assets": [
9199
"src/favicon.ico",
92100
"src/assets"
@@ -106,18 +114,6 @@
106114
"src/**/*.html"
107115
]
108116
}
109-
},
110-
"e2e": {
111-
"builder": "@angular-devkit/build-angular:protractor",
112-
"options": {
113-
"protractorConfig": "e2e/protractor.conf.js",
114-
"devServerTarget": "ngx-ui-loader-app:serve"
115-
},
116-
"configurations": {
117-
"production": {
118-
"devServerTarget": "ngx-ui-loader-app:serve:production"
119-
}
120-
}
121117
}
122118
}
123119
},
@@ -130,14 +126,17 @@
130126
"build": {
131127
"builder": "@angular-devkit/build-angular:ng-packagr",
132128
"options": {
133-
"tsConfig": "projects/ngx-ui-loader/tsconfig.lib.json",
134129
"project": "projects/ngx-ui-loader/ng-package.json"
135130
},
136131
"configurations": {
137132
"production": {
138133
"tsConfig": "projects/ngx-ui-loader/tsconfig.lib.prod.json"
134+
},
135+
"development": {
136+
"tsConfig": "projects/ngx-ui-loader/tsconfig.lib.json"
139137
}
140-
}
138+
},
139+
"defaultConfiguration": "production"
141140
},
142141
"test": {
143142
"builder": "@angular-devkit/build-angular:karma",

e2e/protractor.conf.js

-37
This file was deleted.

e2e/src/app.e2e-spec.ts

-27
This file was deleted.

e2e/src/app.po.ts

-11
This file was deleted.

0 commit comments

Comments
 (0)