Skip to content

Commit a014569

Browse files
chore: update deps (#249)
1 parent dca7edd commit a014569

File tree

4 files changed

+83
-77
lines changed

4 files changed

+83
-77
lines changed

angular.json

+44-40
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@
8282
"apps/example-app/src/**/*.html",
8383
"apps/example-app/src/**/*.html"
8484
]
85-
}
85+
},
86+
"outputs": ["{options.outputFile}"]
8687
},
8788
"test": {
8889
"builder": "@nrwl/jest:jest",
@@ -164,7 +165,8 @@
164165
"apps/example-app-karma/src/**/*.html",
165166
"apps/example-app-karma/src/**/*.html"
166167
]
167-
}
168+
},
169+
"outputs": ["{options.outputFile}"]
168170
},
169171
"test": {
170172
"builder": "@angular-devkit/build-angular:karma",
@@ -180,111 +182,113 @@
180182
}
181183
}
182184
},
183-
"testing-library": {
184-
"root": "projects/testing-library",
185-
"sourceRoot": "projects/testing-library/src",
185+
"jest-utils": {
186+
"root": "projects/jest-utils",
187+
"sourceRoot": "projects/jest-utils/src",
186188
"projectType": "library",
187189
"prefix": "lib",
188190
"architect": {
189191
"build-package": {
190192
"builder": "@angular-devkit/build-angular:ng-packagr",
191193
"options": {
192-
"tsConfig": "projects/testing-library/tsconfig.lib.json",
193-
"project": "projects/testing-library/ng-package.json"
194+
"tsConfig": "projects/jest-utils/tsconfig.lib.json",
195+
"project": "projects/jest-utils/ng-package.json"
194196
},
195197
"configurations": {
196198
"production": {
197-
"project": "projects/testing-library/ng-package.json",
198-
"tsConfig": "projects/testing-library/tsconfig.lib.json"
199+
"project": "projects/jest-utils/ng-package.json",
200+
"tsConfig": "projects/jest-utils/tsconfig.lib.json"
199201
}
200202
}
201203
},
202204
"lint": {
203205
"builder": "@nrwl/linter:eslint",
204206
"options": {
205207
"lintFilePatterns": [
206-
"projects/testing-library/**/*.ts",
207-
"projects/testing-library/**/*.html",
208-
"projects/testing-library/src/**/*.html",
209-
"projects/testing-library/src/**/*.html",
210-
"projects/testing-library/src/**/*.html"
208+
"projects/jest-utils/**/*.ts",
209+
"projects/jest-utils/**/*.html",
210+
"projects/jest-utils/src/**/*.html",
211+
"projects/jest-utils/src/**/*.html",
212+
"projects/jest-utils/src/**/*.html"
211213
]
212-
}
214+
},
215+
"outputs": ["{options.outputFile}"]
213216
},
214217
"build": {
215218
"builder": "@nrwl/workspace:run-commands",
216219
"options": {
217220
"parallel": false,
218221
"commands": [
219222
{
220-
"command": "ng run testing-library:build-package"
221-
},
222-
{
223-
"command": "npm run build:schematics"
224-
},
225-
{
226-
"command": "cpy ./README.md ./dist/@testing-library/angular"
223+
"command": "ng run jest-utils:build-package"
227224
}
228225
]
229226
}
230227
},
231228
"test": {
232229
"builder": "@nrwl/jest:jest",
233230
"options": {
234-
"jestConfig": "projects/testing-library/jest.config.js"
231+
"jestConfig": "projects/jest-utils/jest.config.js"
235232
},
236-
"outputs": ["coverage/projects/testing-library"]
233+
"outputs": ["coverage/projects/jest-utils"]
237234
}
238235
}
239236
},
240-
"jest-utils": {
241-
"root": "projects/jest-utils",
242-
"sourceRoot": "projects/jest-utils/src",
237+
"testing-library": {
238+
"root": "projects/testing-library",
239+
"sourceRoot": "projects/testing-library/src",
243240
"projectType": "library",
244241
"prefix": "lib",
245242
"architect": {
246243
"build-package": {
247244
"builder": "@angular-devkit/build-angular:ng-packagr",
248245
"options": {
249-
"tsConfig": "projects/jest-utils/tsconfig.lib.json",
250-
"project": "projects/jest-utils/ng-package.json"
246+
"tsConfig": "projects/testing-library/tsconfig.lib.json",
247+
"project": "projects/testing-library/ng-package.json"
251248
},
252249
"configurations": {
253250
"production": {
254-
"project": "projects/jest-utils/ng-package.json",
255-
"tsConfig": "projects/jest-utils/tsconfig.lib.json"
251+
"project": "projects/testing-library/ng-package.json",
252+
"tsConfig": "projects/testing-library/tsconfig.lib.json"
256253
}
257254
}
258255
},
259256
"lint": {
260257
"builder": "@nrwl/linter:eslint",
261258
"options": {
262259
"lintFilePatterns": [
263-
"projects/jest-utils/**/*.ts",
264-
"projects/jest-utils/**/*.html",
265-
"projects/jest-utils/src/**/*.html",
266-
"projects/jest-utils/src/**/*.html",
267-
"projects/jest-utils/src/**/*.html"
260+
"projects/testing-library/**/*.ts",
261+
"projects/testing-library/**/*.html",
262+
"projects/testing-library/src/**/*.html",
263+
"projects/testing-library/src/**/*.html",
264+
"projects/testing-library/src/**/*.html"
268265
]
269-
}
266+
},
267+
"outputs": ["{options.outputFile}"]
270268
},
271269
"build": {
272270
"builder": "@nrwl/workspace:run-commands",
273271
"options": {
274272
"parallel": false,
275273
"commands": [
276274
{
277-
"command": "ng run jest-utils:build-package"
275+
"command": "ng run testing-library:build-package"
276+
},
277+
{
278+
"command": "npm run build:schematics"
279+
},
280+
{
281+
"command": "cpy ./README.md ./dist/@testing-library/angular"
278282
}
279283
]
280284
}
281285
},
282286
"test": {
283287
"builder": "@nrwl/jest:jest",
284288
"options": {
285-
"jestConfig": "projects/jest-utils/jest.config.js"
289+
"jestConfig": "projects/testing-library/jest.config.js"
286290
},
287-
"outputs": ["coverage/projects/jest-utils"]
291+
"outputs": ["coverage/projects/testing-library"]
288292
}
289293
}
290294
}

jest.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const { getJestProjects } = require('@nrwl/jest');
2+
13
module.exports = {
2-
projects: ['<rootDir>/apps/example-app', '<rootDir>/projects/testing-library', '<rootDir>/projects/jest-utils'],
4+
projects: getJestProjects(),
35
};

nx.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131
"example-app-karma": {
3232
"tags": []
3333
},
34-
"testing-library": {
34+
"jest-utils": {
3535
"tags": []
3636
},
37-
"jest-utils": {
37+
"testing-library": {
3838
"tags": []
3939
}
4040
}

package.json

+34-34
Original file line numberDiff line numberDiff line change
@@ -28,48 +28,48 @@
2828
"prepare": "husky install"
2929
},
3030
"dependencies": {
31-
"@angular/animations": "12.1.1",
32-
"@angular/cdk": "12.1.1",
33-
"@angular/common": "12.1.1",
34-
"@angular/compiler": "12.1.1",
35-
"@angular/core": "12.1.1",
36-
"@angular/forms": "12.1.1",
37-
"@angular/material": "12.1.1",
38-
"@angular/platform-browser": "12.1.1",
39-
"@angular/platform-browser-dynamic": "12.1.1",
40-
"@angular/router": "12.1.1",
41-
"@ngrx/store": "12.2.0",
42-
"@nrwl/angular": "12.5.1",
43-
"@nrwl/nx-cloud": "11.2.0",
31+
"@angular/animations": "12.2.0",
32+
"@angular/cdk": "12.2.0",
33+
"@angular/common": "12.2.0",
34+
"@angular/compiler": "12.2.0",
35+
"@angular/core": "12.2.0",
36+
"@angular/forms": "12.2.0",
37+
"@angular/material": "12.2.0",
38+
"@angular/platform-browser": "12.2.0",
39+
"@angular/platform-browser-dynamic": "12.2.0",
40+
"@angular/router": "12.2.0",
41+
"@ngrx/store": "12.4.0",
42+
"@nrwl/angular": "12.9.0",
43+
"@nrwl/nx-cloud": "12.3.12",
4444
"@testing-library/dom": "^8.0.0",
4545
"@testing-library/user-event": "^13.1.9",
4646
"core-js": "^3.6.5",
4747
"rxjs": "^6.5.5",
4848
"tslib": "^2.0.0",
49-
"zone.js": "^0.11.4"
49+
"zone.js": "0.11.4"
5050
},
5151
"devDependencies": {
52-
"@angular-devkit/build-angular": "12.1.0",
53-
"@angular-eslint/eslint-plugin": "^12.2.0",
54-
"@angular-eslint/eslint-plugin-template": "^12.2.0",
55-
"@angular-eslint/template-parser": "^12.2.0",
56-
"@angular/cli": "12.1.0",
57-
"@angular/compiler-cli": "12.1.1",
58-
"@angular/language-service": "12.1.1",
59-
"@nrwl/cli": "12.5.1",
60-
"@nrwl/eslint-plugin-nx": "12.5.1",
61-
"@nrwl/jest": "12.5.1",
62-
"@nrwl/linter": "12.5.1",
63-
"@nrwl/node": "12.5.1",
64-
"@nrwl/nx-plugin": "12.5.1",
65-
"@nrwl/workspace": "12.5.1",
52+
"@angular-devkit/build-angular": "12.2.7",
53+
"@angular-eslint/eslint-plugin": "12.3.1",
54+
"@angular-eslint/eslint-plugin-template": "12.3.1",
55+
"@angular-eslint/template-parser": "12.3.1",
56+
"@angular/cli": "12.2.7",
57+
"@angular/compiler-cli": "12.2.0",
58+
"@angular/language-service": "12.2.0",
59+
"@nrwl/cli": "12.9.0",
60+
"@nrwl/eslint-plugin-nx": "12.9.0",
61+
"@nrwl/jest": "12.9.0",
62+
"@nrwl/linter": "12.9.0",
63+
"@nrwl/node": "12.9.0",
64+
"@nrwl/nx-plugin": "12.9.0",
65+
"@nrwl/workspace": "12.9.0",
6666
"@testing-library/jasmine-dom": "^1.2.0",
6767
"@testing-library/jest-dom": "^5.11.10",
6868
"@types/jasmine": "^3.5.0",
69-
"@types/jest": "^26.0.23",
69+
"@types/jest": "^27.0.2",
7070
"@types/node": "14.14.37",
71-
"@typescript-eslint/eslint-plugin": "4.28.2",
72-
"@typescript-eslint/parser": "4.28.2",
71+
"@typescript-eslint/eslint-plugin": "4.28.5",
72+
"@typescript-eslint/parser": "4.28.5",
7373
"cpy-cli": "^3.1.1",
7474
"eslint": "^7.25.0",
7575
"eslint-config-prettier": "8.3.0",
@@ -82,18 +82,18 @@
8282
"jasmine-core": "^3.7.0",
8383
"jasmine-spec-reporter": "^5.0.0",
8484
"jest": "^27.0.6",
85-
"jest-preset-angular": "9.0.4",
85+
"jest-preset-angular": "9.0.7",
8686
"karma": "^6.3.4",
8787
"karma-chrome-launcher": "^3.1.0",
8888
"karma-jasmine": "^4.0.0",
8989
"karma-jasmine-html-reporter": "^1.5.0",
9090
"lint-staged": "^10.2.11",
91-
"ng-packagr": "12.0.0",
91+
"ng-packagr": "12.2.2",
9292
"prettier": "^2.3.0",
9393
"rimraf": "^3.0.2",
9494
"semantic-release": "^17.1.1",
9595
"ts-jest": "^27.0.3",
9696
"ts-node": "9.1.1",
97-
"typescript": "4.2.4"
97+
"typescript": "4.3.5"
9898
}
9999
}

0 commit comments

Comments
 (0)