Skip to content

Commit 26dab48

Browse files
committed
feat: 🎸 upgrade to Angular v13
BREAKING CHANGE: 🧨 The library now requires Angular v13 ✅ Closes: #117
1 parent 91fd89a commit 26dab48

15 files changed

+5278
-31187
lines changed

‎.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ node_modules
2525
!.vscode/extensions.json
2626

2727
# misc
28+
/.angular/cache
2829
/.sass-cache
2930
/connect.lock
3031
/coverage

‎angular.json

Lines changed: 15 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
"architect": {
1010
"build": {
1111
"builder": "@angular-devkit/build-angular:browser",
12-
"outputs": [
13-
"{options.outputPath}"
14-
],
12+
"outputs": ["{options.outputPath}"],
1513
"options": {
1614
"outputPath": "dist/apps/playground",
1715
"index": "apps/playground/src/index.html",
@@ -22,9 +20,7 @@
2220
"apps/playground/src/favicon.ico",
2321
"apps/playground/src/assets"
2422
],
25-
"styles": [
26-
"apps/playground/src/styles.css"
27-
],
23+
"styles": ["apps/playground/src/styles.css"],
2824
"scripts": []
2925
},
3026
"configurations": {
@@ -89,15 +85,14 @@
8985
},
9086
"test": {
9187
"builder": "@nrwl/jest:jest",
92-
"outputs": [
93-
"coverage/apps/playground"
94-
],
88+
"outputs": ["coverage/apps/playground"],
9589
"options": {
9690
"jestConfig": "apps/playground/jest.config.js",
9791
"passWithNoTests": true
9892
}
9993
}
100-
}
94+
},
95+
"tags": []
10196
},
10297
"playground-e2e": {
10398
"root": "apps/playground-e2e",
@@ -119,16 +114,14 @@
119114
},
120115
"lint": {
121116
"builder": "@nrwl/linter:eslint",
122-
"outputs": [
123-
"{options.outputFile}"
124-
],
117+
"outputs": ["{options.outputFile}"],
125118
"options": {
126-
"lintFilePatterns": [
127-
"apps/playground-e2e/**/*.{js,ts}"
128-
]
119+
"lintFilePatterns": ["apps/playground-e2e/**/*.{js,ts}"]
129120
}
130121
}
131-
}
122+
},
123+
"tags": [],
124+
"implicitDependencies": ["playground"]
132125
},
133126
"reactive-forms": {
134127
"projectType": "library",
@@ -138,9 +131,7 @@
138131
"architect": {
139132
"build": {
140133
"builder": "@nrwl/angular:package",
141-
"outputs": [
142-
"dist/libs/reactive-forms"
143-
],
134+
"outputs": ["dist/libs/reactive-forms"],
144135
"options": {
145136
"project": "libs/reactive-forms/ng-package.json"
146137
},
@@ -156,9 +147,7 @@
156147
},
157148
"test": {
158149
"builder": "@nrwl/jest:jest",
159-
"outputs": [
160-
"coverage/libs/reactive-forms"
161-
],
150+
"outputs": ["coverage/libs/reactive-forms"],
162151
"options": {
163152
"jestConfig": "libs/reactive-forms/jest.config.js",
164153
"passWithNoTests": true
@@ -173,39 +162,8 @@
173162
]
174163
}
175164
}
176-
}
177-
}
178-
},
179-
"cli": {
180-
"defaultCollection": "@nrwl/angular",
181-
"packageManager": "npm"
182-
},
183-
"schematics": {
184-
"@nrwl/angular": {
185-
"application": {
186-
"linter": "eslint"
187-
},
188-
"library": {
189-
"linter": "eslint"
190165
},
191-
"storybook-configuration": {
192-
"linter": "eslint"
193-
}
194-
},
195-
"@nrwl/angular:application": {
196-
"style": "css",
197-
"linter": "eslint",
198-
"unitTestRunner": "jest",
199-
"e2eTestRunner": "cypress"
200-
},
201-
"@nrwl/angular:library": {
202-
"style": "css",
203-
"linter": "eslint",
204-
"unitTestRunner": "jest"
205-
},
206-
"@nrwl/angular:component": {
207-
"style": "css"
166+
"tags": []
208167
}
209-
},
210-
"defaultProject": "playground"
211-
}
168+
}
169+
}

‎apps/playground/jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ module.exports = {
1010
},
1111
coverageDirectory: '../../coverage/apps/playground',
1212
transform: {
13-
'^.+\\.(ts|js|html)$': 'jest-preset-angular',
13+
'^.+.(ts|mjs|js|html)$': 'jest-preset-angular',
1414
},
15+
transformIgnorePatterns: ['node_modules/(?!.*.mjs$)'],
1516
snapshotSerializers: [
1617
'jest-preset-angular/build/serializers/no-ng-attributes',
1718
'jest-preset-angular/build/serializers/ng-snapshot',

‎apps/playground/src/polyfills.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,6 @@
1818
* BROWSER POLYFILLS
1919
*/
2020

21-
/**
22-
* IE11 requires the following for NgClass support on SVG elements
23-
*/
24-
// import 'classlist.js'; // Run `npm install --save classlist.js`.
25-
26-
/**
27-
* Web Animations `@angular/platform-browser/animations`
28-
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
29-
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
30-
*/
31-
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
32-
3321
/**
3422
* By default, zone.js will patch all possible macroTask and DomEvents
3523
* user can disable parts of macroTask/DomEvents patch by setting following flags

‎apps/playground/tsconfig.spec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"types": ["jest", "node"]
77
},
88
"files": ["src/test-setup.ts"],
9-
"include": ["**/*.spec.ts", "**/*.d.ts"]
9+
"include": ["**/*.spec.ts", "**/*.test.ts", "**/*.d.ts"]
1010
}

‎libs/reactive-forms/jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ module.exports = {
1010
},
1111
coverageDirectory: '../../coverage/libs/reactive-forms',
1212
transform: {
13-
'^.+\\.(ts|js|html)$': 'jest-preset-angular',
13+
'^.+.(ts|mjs|js|html)$': 'jest-preset-angular',
1414
},
15+
transformIgnorePatterns: ['node_modules/(?!.*.mjs$)'],
1516
snapshotSerializers: [
1617
'jest-preset-angular/build/serializers/no-ng-attributes',
1718
'jest-preset-angular/build/serializers/ng-snapshot',

‎libs/reactive-forms/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
},
2727
"homepage": "https://github.com/ngneat/reactive-forms#readme",
2828
"peerDependencies": {
29-
"@angular/forms": ">= 12.0.0"
29+
"@angular/forms": ">= 13.0.0"
3030
},
3131
"repository": {
3232
"type": "git",
3333
"url": "https://github.com/ngneat/reactive-forms"
3434
}
35-
}
35+
}

‎libs/reactive-forms/tsconfig.lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"types": [],
1010
"lib": ["dom", "es2018"]
1111
},
12-
"exclude": ["src/test-setup.ts", "**/*.spec.ts"],
12+
"exclude": ["src/test-setup.ts", "**/*.spec.ts", "**/*.test.ts"],
1313
"include": ["**/*.ts"]
1414
}
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
/* To learn more about this file see: https://angular.io/config/tsconfig. */
21
{
32
"extends": "./tsconfig.lib.json",
43
"compilerOptions": {
54
"declarationMap": false
65
},
76
"angularCompilerOptions": {
8-
"enableIvy": false
7+
"compilationMode": "partial"
98
}
10-
}
9+
}

‎libs/reactive-forms/tsconfig.spec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"types": ["jest", "node"]
77
},
88
"files": ["src/test-setup.ts"],
9-
"include": ["**/*.spec.ts", "**/*.d.ts"]
9+
"include": ["**/*.spec.ts", "**/*.test.ts", "**/*.d.ts"]
1010
}

0 commit comments

Comments
 (0)