Skip to content

Commit c8b068f

Browse files
committed
V13.0.0-rc.1: Updates to V13.
1 parent e8ec989 commit c8b068f

45 files changed

Lines changed: 22996 additions & 272 deletions

Some content is hidden

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

.editorconfig

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

.gitignore

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
/dist
55
/tmp
66
/out-tsc
7-
/projects/dist
7+
# Only exists if Bazel was run
8+
/bazel-out
89

910
# dependencies
1011
/node_modules
11-
package-lock.json
12-
.npmrc
12+
13+
# profiling files
14+
chrome-profiler-events*.json
1315

1416
# IDEs and editors
1517
/.idea
@@ -26,9 +28,10 @@ package-lock.json
2628
!.vscode/tasks.json
2729
!.vscode/launch.json
2830
!.vscode/extensions.json
29-
.editorconfig
31+
.history/*
3032

3133
# misc
34+
/.angular/cache
3235
/.sass-cache
3336
/connect.lock
3437
/coverage

.vscode/extensions.json

Lines changed: 4 additions & 0 deletions
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

Lines changed: 20 additions & 0 deletions
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

Lines changed: 42 additions & 0 deletions
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+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Install ngx-loading via NPM, using the command below.
2323
npm install --save ngx-loading
2424
```
2525

26-
NOTE: Version 8 of this package requires Angular 8 as a dependency. If you are using Angular 7, please install version 7. For Angular 6, please install version 3 and for Angular 4 / 5, please install version 2.0.1 e.g.
26+
NOTE: Version 13 of this package requires Angular 13 as a dependency. If you are using an older version of Angular, please install the relevant version e.g. 2.0.1 for Angular 2:
2727
```shell
2828
npm install --save ngx-loading@2.0.1
2929
```

angular.json

Lines changed: 98 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -3,163 +3,140 @@
33
"version": 1,
44
"newProjectRoot": "projects",
55
"projects": {
6-
"ngx-loading-app": {
7-
"root": "",
8-
"sourceRoot": "src",
9-
"projectType": "application",
10-
"prefix": "app",
11-
"schematics": {},
6+
"ngx-loading": {
7+
"projectType": "library",
8+
"root": "projects/ngx-loading",
9+
"sourceRoot": "projects/ngx-loading/src",
10+
"prefix": "ngx",
1211
"architect": {
1312
"build": {
14-
"builder": "@angular-devkit/build-angular:browser",
13+
"builder": "@angular-devkit/build-angular:ng-packagr",
1514
"options": {
16-
"outputPath": "dist/ngx-loading-app",
17-
"index": "src/index.html",
18-
"main": "src/main.ts",
19-
"polyfills": "src/polyfills.ts",
20-
"tsConfig": "src/tsconfig.app.json",
21-
"assets": [
22-
"src/favicon.ico",
23-
"src/assets"
24-
],
25-
"styles": [
26-
"src/styles.css"
27-
],
28-
"scripts": []
15+
"project": "projects/ngx-loading/ng-package.json"
2916
},
3017
"configurations": {
3118
"production": {
32-
"fileReplacements": [{
33-
"replace": "src/environments/environment.ts",
34-
"with": "src/environments/environment.prod.ts"
35-
}],
36-
"optimization": true,
37-
"outputHashing": "all",
38-
"sourceMap": false,
39-
"extractCss": true,
40-
"namedChunks": false,
41-
"aot": true,
42-
"extractLicenses": true,
43-
"vendorChunk": false,
44-
"buildOptimizer": true
19+
"tsConfig": "projects/ngx-loading/tsconfig.lib.prod.json"
20+
},
21+
"development": {
22+
"tsConfig": "projects/ngx-loading/tsconfig.lib.json"
4523
}
46-
}
47-
},
48-
"serve": {
49-
"builder": "@angular-devkit/build-angular:dev-server",
50-
"options": {
51-
"browserTarget": "ngx-loading-app:build"
5224
},
53-
"configurations": {
54-
"production": {
55-
"browserTarget": "ngx-loading-app:build:production"
56-
}
57-
}
58-
},
59-
"extract-i18n": {
60-
"builder": "@angular-devkit/build-angular:extract-i18n",
61-
"options": {
62-
"browserTarget": "ngx-loading-app:build"
63-
}
25+
"defaultConfiguration": "production"
6426
},
6527
"test": {
6628
"builder": "@angular-devkit/build-angular:karma",
6729
"options": {
68-
"main": "src/test.ts",
69-
"polyfills": "src/polyfills.ts",
70-
"tsConfig": "src/tsconfig.spec.json",
71-
"karmaConfig": "src/karma.conf.js",
72-
"styles": [
73-
"src/styles.css"
74-
],
75-
"scripts": [],
76-
"assets": [
77-
"src/favicon.ico",
78-
"src/assets"
79-
]
80-
}
81-
},
82-
"lint": {
83-
"builder": "@angular-devkit/build-angular:tslint",
84-
"options": {
85-
"tsConfig": [
86-
"src/tsconfig.app.json",
87-
"src/tsconfig.spec.json"
88-
],
89-
"exclude": [
90-
"**/node_modules/**"
91-
]
30+
"main": "projects/ngx-loading/src/test.ts",
31+
"tsConfig": "projects/ngx-loading/tsconfig.spec.json",
32+
"karmaConfig": "projects/ngx-loading/karma.conf.js"
9233
}
9334
}
9435
}
9536
},
96-
"ngx-loading-app-e2e": {
97-
"root": "e2e/",
37+
"ngx-loading-sample-app": {
9838
"projectType": "application",
39+
"schematics": {
40+
"@schematics/angular:component": {
41+
"style": "scss"
42+
},
43+
"@schematics/angular:application": {
44+
"strict": true
45+
}
46+
},
47+
"root": "projects/ngx-loading-sample-app",
48+
"sourceRoot": "projects/ngx-loading-sample-app/src",
49+
"prefix": "app",
9950
"architect": {
100-
"e2e": {
101-
"builder": "@angular-devkit/build-angular:protractor",
51+
"build": {
52+
"builder": "@angular-devkit/build-angular:browser",
10253
"options": {
103-
"protractorConfig": "e2e/protractor.conf.js",
104-
"devServerTarget": "ngx-loading-app:serve"
54+
"outputPath": "dist/ngx-loading-sample-app",
55+
"index": "projects/ngx-loading-sample-app/src/index.html",
56+
"main": "projects/ngx-loading-sample-app/src/main.ts",
57+
"polyfills": "projects/ngx-loading-sample-app/src/polyfills.ts",
58+
"tsConfig": "projects/ngx-loading-sample-app/tsconfig.app.json",
59+
"inlineStyleLanguage": "scss",
60+
"assets": [
61+
"projects/ngx-loading-sample-app/src/favicon.ico",
62+
"projects/ngx-loading-sample-app/src/assets"
63+
],
64+
"styles": [
65+
"projects/ngx-loading-sample-app/src/styles.scss"
66+
],
67+
"scripts": []
10568
},
10669
"configurations": {
10770
"production": {
108-
"devServerTarget": "ngx-loading-app:serve:production"
71+
"budgets": [
72+
{
73+
"type": "initial",
74+
"maximumWarning": "500kb",
75+
"maximumError": "1mb"
76+
},
77+
{
78+
"type": "anyComponentStyle",
79+
"maximumWarning": "2kb",
80+
"maximumError": "4kb"
81+
}
82+
],
83+
"fileReplacements": [
84+
{
85+
"replace": "projects/ngx-loading-sample-app/src/environments/environment.ts",
86+
"with": "projects/ngx-loading-sample-app/src/environments/environment.prod.ts"
87+
}
88+
],
89+
"outputHashing": "all"
90+
},
91+
"development": {
92+
"buildOptimizer": false,
93+
"optimization": false,
94+
"vendorChunk": true,
95+
"extractLicenses": false,
96+
"sourceMap": true,
97+
"namedChunks": true
10998
}
110-
}
111-
},
112-
"lint": {
113-
"builder": "@angular-devkit/build-angular:tslint",
114-
"options": {
115-
"tsConfig": "e2e/tsconfig.e2e.json",
116-
"exclude": [
117-
"**/node_modules/**"
118-
]
119-
}
120-
}
121-
}
122-
},
123-
"ngx-loading": {
124-
"root": "projects/ngx-loading",
125-
"sourceRoot": "projects/ngx-loading/src",
126-
"projectType": "library",
127-
"prefix": "ngx",
128-
"architect": {
129-
"build": {
130-
"builder": "@angular-devkit/build-ng-packagr:build",
131-
"options": {
132-
"tsConfig": "projects/ngx-loading/tsconfig.lib.json",
133-
"project": "projects/ngx-loading/ng-package.json"
13499
},
100+
"defaultConfiguration": "production"
101+
},
102+
"serve": {
103+
"builder": "@angular-devkit/build-angular:dev-server",
135104
"configurations": {
136105
"production": {
137-
"project": "projects/ngx-loading/ng-package.prod.json"
106+
"browserTarget": "ngx-loading-sample-app:build:production"
107+
},
108+
"development": {
109+
"browserTarget": "ngx-loading-sample-app:build:development"
138110
}
139-
}
111+
},
112+
"defaultConfiguration": "development"
140113
},
141-
"test": {
142-
"builder": "@angular-devkit/build-angular:karma",
114+
"extract-i18n": {
115+
"builder": "@angular-devkit/build-angular:extract-i18n",
143116
"options": {
144-
"main": "projects/ngx-loading/src/test.ts",
145-
"tsConfig": "projects/ngx-loading/tsconfig.spec.json",
146-
"karmaConfig": "projects/ngx-loading/karma.conf.js"
117+
"browserTarget": "ngx-loading-sample-app:build"
147118
}
148119
},
149-
"lint": {
150-
"builder": "@angular-devkit/build-angular:tslint",
120+
"test": {
121+
"builder": "@angular-devkit/build-angular:karma",
151122
"options": {
152-
"tsConfig": [
153-
"projects/ngx-loading/tsconfig.lib.json",
154-
"projects/ngx-loading/tsconfig.spec.json"
123+
"main": "projects/ngx-loading-sample-app/src/test.ts",
124+
"polyfills": "projects/ngx-loading-sample-app/src/polyfills.ts",
125+
"tsConfig": "projects/ngx-loading-sample-app/tsconfig.spec.json",
126+
"karmaConfig": "projects/ngx-loading-sample-app/karma.conf.js",
127+
"inlineStyleLanguage": "scss",
128+
"assets": [
129+
"projects/ngx-loading-sample-app/src/favicon.ico",
130+
"projects/ngx-loading-sample-app/src/assets"
155131
],
156-
"exclude": [
157-
"**/node_modules/**"
158-
]
132+
"styles": [
133+
"projects/ngx-loading-sample-app/src/styles.scss"
134+
],
135+
"scripts": []
159136
}
160137
}
161138
}
162139
}
163140
},
164-
"defaultProject": "ngx-loading-app"
141+
"defaultProject": "ngx-loading-sample-app"
165142
}

0 commit comments

Comments
 (0)