Skip to content

Commit 8e13360

Browse files
authored
Merge pull request #55 from klerick/bump-nx
feat(json-api-nestjs,json-api-nestjs-sdk):up angular and nx
2 parents ee3188e + 6509eca commit 8e13360

40 files changed

+11663
-15274
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.eslintrc.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"root": true,
33
"ignorePatterns": ["**/*"],
4-
"plugins": ["@nrwl/nx"],
4+
"plugins": ["@nx"],
55
"overrides": [
66
{
77
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
88
"rules": {
9-
"@nrwl/nx/enforce-module-boundaries": [
9+
"@nx/enforce-module-boundaries": [
1010
"error",
1111
{
1212
"enforceBuildableLibDependency": true,
@@ -23,12 +23,12 @@
2323
},
2424
{
2525
"files": ["*.ts", "*.tsx"],
26-
"extends": ["plugin:@nrwl/nx/typescript"],
26+
"extends": ["plugin:@nx/typescript"],
2727
"rules": {}
2828
},
2929
{
3030
"files": ["*.js", "*.jsx"],
31-
"extends": ["plugin:@nrwl/nx/javascript"],
31+
"extends": ["plugin:@nx/javascript"],
3232
"rules": {}
3333
},
3434
{

apps/example-angular-client/.browserslistrc

Lines changed: 0 additions & 16 deletions
This file was deleted.

apps/example-angular-client/.eslintrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"files": ["*.ts"],
77
"extends": [
8-
"plugin:@nrwl/nx/angular",
8+
"plugin:@nx/angular",
99
"plugin:@angular-eslint/template/process-inline-templates"
1010
],
1111
"rules": {
@@ -29,7 +29,7 @@
2929
},
3030
{
3131
"files": ["*.html"],
32-
"extends": ["plugin:@nrwl/nx/angular-template"],
32+
"extends": ["plugin:@nx/angular-template"],
3333
"rules": {}
3434
}
3535
]

apps/example-angular-client/jest.config.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ export default {
33
displayName: 'example-angular-client',
44
preset: '../../jest.preset.js',
55
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
6-
globals: {
7-
'ts-jest': {
8-
tsconfig: '<rootDir>/tsconfig.spec.json',
9-
stringifyContentPathRegex: '\\.(html|svg)$',
10-
},
11-
},
6+
globals: {},
127
coverageDirectory: '../../coverage/apps/example-angular-client',
138
transform: {
14-
'^.+\\.(ts|mjs|js|html)$': 'jest-preset-angular',
9+
'^.+\\.(ts|mjs|js|html)$': [
10+
'jest-preset-angular',
11+
{
12+
tsconfig: '<rootDir>/tsconfig.spec.json',
13+
stringifyContentPathRegex: '\\.(html|svg)$',
14+
},
15+
],
1516
},
1617
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
1718
snapshotSerializers: [

apps/example-angular-client/project.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
}
8383
},
8484
"lint": {
85-
"executor": "@nrwl/linter:eslint",
85+
"executor": "@nx/linter:eslint",
8686
"options": {
8787
"lintFilePatterns": [
8888
"apps/example-angular-client/**/*.ts",
@@ -91,8 +91,8 @@
9191
}
9292
},
9393
"test": {
94-
"executor": "@nrwl/jest:jest",
95-
"outputs": ["coverage/apps/example-angular-client"],
94+
"executor": "@nx/jest:jest",
95+
"outputs": ["{workspaceRoot}/coverage/apps/example-angular-client"],
9696
"options": {
9797
"jestConfig": "apps/example-angular-client/jest.config.ts",
9898
"passWithNoTests": true

apps/example-angular-client/src/app/nx-welcome.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,10 +769,10 @@ import { Component, OnInit, ViewEncapsulation } from '@angular/core';
769769
Add UI library
770770
</summary>
771771
<pre><span># Generate UI lib</span>
772-
nx g @nrwl/angular:lib ui
772+
nx g @nx/angular:lib ui
773773
774774
<span># Add a component</span>
775-
nx g @nrwl/angular:component button --project ui</pre>
775+
nx g @nx/angular:component button --project ui</pre>
776776
</details>
777777
<details>
778778
<summary>

apps/example-react-client/.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"presets": [
33
[
4-
"@nrwl/react/babel",
4+
"@nx/react/babel",
55
{
66
"runtime": "automatic"
77
}

apps/example-react-client/.browserslistrc

Lines changed: 0 additions & 16 deletions
This file was deleted.

apps/example-react-client/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": ["plugin:@nrwl/nx/react", "../../.eslintrc.json"],
2+
"extends": ["plugin:@nx/react", "../../.eslintrc.json"],
33
"ignorePatterns": ["!**/*"],
44
"overrides": [
55
{

0 commit comments

Comments
 (0)