Skip to content

Commit b3f1e2f

Browse files
committed
build(deps): update to nx & angular 17
1 parent 8dfd630 commit b3f1e2f

14 files changed

+15047
-39263
lines changed

.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/nx"],
55
"overrides": [
66
{
77
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
88
"rules": {
9-
"@nrwl/nx/enforce-module-boundaries": [
9+
"@nx/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/nx/typescript"],
2727
"rules": {}
2828
},
2929
{
3030
"files": ["*.js", "*.jsx"],
31-
"extends": ["plugin:@nrwl/nx/javascript"],
31+
"extends": ["plugin:@nx/nx/javascript"],
3232
"rules": {}
3333
}
3434
]

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,5 @@ Thumbs.db
4242
# Firebase
4343
.firebase
4444
firebase-debug.log
45+
46+
.nx/cache

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22

33
/dist
44
/coverage
5+
6+
/.nx/cache

angular.json

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

apps/demo/.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/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/nx/angular-template"],
3333
"rules": {}
3434
}
3535
]

apps/demo/project.json

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
{
2+
"name": "demo",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
4+
"projectType": "application",
5+
"sourceRoot": "apps/demo/src",
6+
"prefix": "demo",
7+
"targets": {
8+
"build": {
9+
"executor": "@angular-devkit/build-angular:browser",
10+
"options": {
11+
"outputPath": "dist/apps/demo",
12+
"index": "apps/demo/src/index.html",
13+
"main": "apps/demo/src/main.ts",
14+
"polyfills": "apps/demo/src/polyfills.ts",
15+
"tsConfig": "apps/demo/tsconfig.app.json",
16+
"assets": ["apps/demo/src/favicon.ico", "apps/demo/src/assets"],
17+
"styles": ["apps/demo/src/styles.scss"],
18+
"scripts": [],
19+
"vendorChunk": true,
20+
"extractLicenses": false,
21+
"buildOptimizer": false,
22+
"sourceMap": true,
23+
"optimization": false,
24+
"allowedCommonJsDependencies": [
25+
"@contentful/rich-text-types",
26+
"jsoneditor",
27+
"fast-deep-equal/es6"
28+
],
29+
"namedChunks": true
30+
},
31+
"configurations": {
32+
"production": {
33+
"fileReplacements": [
34+
{
35+
"replace": "apps/demo/src/environments/environment.ts",
36+
"with": "apps/demo/src/environments/environment.prod.ts"
37+
}
38+
],
39+
"optimization": true,
40+
"outputHashing": "all",
41+
"sourceMap": false,
42+
"namedChunks": false,
43+
"extractLicenses": true,
44+
"vendorChunk": false,
45+
"buildOptimizer": true,
46+
"budgets": [
47+
{
48+
"type": "initial",
49+
"maximumWarning": "2mb",
50+
"maximumError": "5mb"
51+
},
52+
{
53+
"type": "anyComponentStyle",
54+
"maximumWarning": "6kb",
55+
"maximumError": "10kb"
56+
}
57+
]
58+
}
59+
},
60+
"defaultConfiguration": ""
61+
},
62+
"serve": {
63+
"executor": "@angular-devkit/build-angular:dev-server",
64+
"options": {
65+
"buildTarget": "demo:build"
66+
},
67+
"configurations": {
68+
"production": {
69+
"buildTarget": "demo:build:production"
70+
}
71+
}
72+
},
73+
"extract-i18n": {
74+
"executor": "@angular-devkit/build-angular:extract-i18n",
75+
"options": {
76+
"buildTarget": "demo:build"
77+
}
78+
},
79+
"lint": {
80+
"executor": "@nx/linter:eslint",
81+
"options": {
82+
"lintFilePatterns": ["apps/demo/src/**/*.ts", "apps/demo/src/**/*.html"]
83+
},
84+
"outputs": ["{options.outputFile}"]
85+
},
86+
"test": {
87+
"executor": "@nx/jest:jest",
88+
"outputs": ["{workspaceRoot}/coverage/apps/demo"],
89+
"options": {
90+
"jestConfig": "apps/demo/jest.config.js",
91+
"passWithNoTests": true
92+
}
93+
}
94+
},
95+
"tags": []
96+
}

decorate-angular-cli.js

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

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
const { getJestProjects } = require('@nrwl/jest');
1+
const { getJestProjects } = require('@nx/jest');
22

33
module.exports = { projects: getJestProjects() };

jest.preset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
const nxPreset = require('@nrwl/jest/preset');
1+
const nxPreset = require('@nx/jest/preset');
22

33
module.exports = { ...nxPreset };

libs/contentful-rich-text-angular-renderer/.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/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/nx/angular-template"],
3333
"rules": {}
3434
}
3535
]

0 commit comments

Comments
 (0)