Skip to content

Commit

Permalink
migrate to nx 17.1.3 (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacplmann authored Nov 27, 2023
1 parent 66d4749 commit 5bd23b0
Show file tree
Hide file tree
Showing 113 changed files with 24,195 additions and 24,638 deletions.
15 changes: 4 additions & 11 deletions angular-monorepo/apps/angular-store/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,18 @@
"executor": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "angular-store:build:production"
"buildTarget": "angular-store:build:production"
},
"development": {
"browserTarget": "angular-store:build:development"
"buildTarget": "angular-store:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"executor": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "angular-store:build"
"buildTarget": "angular-store:build"
}
},
"lint": {
Expand All @@ -81,14 +81,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "apps/angular-store/jest.config.ts",
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
"jestConfig": "apps/angular-store/jest.config.ts"
}
},
"serve-static": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -783,9 +783,9 @@ import { CommonModule } from '@angular/common';
Add UI library
</summary>
<pre><span># Generate UI lib</span>
nx g @nx/angular:lib ui
nx g &#64;nx/angular:lib ui
<span># Add a component</span>
nx g @nx/angular:component button --project ui</pre>
nx g &#64;nx/angular:component button --project ui</pre>
</details>
<details>
<summary>
Expand Down
15 changes: 4 additions & 11 deletions angular-monorepo/apps/inventory/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,18 @@
"executor": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "inventory:build:production"
"buildTarget": "inventory:build:production"
},
"development": {
"browserTarget": "inventory:build:development"
"buildTarget": "inventory:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"executor": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "inventory:build"
"buildTarget": "inventory:build"
}
},
"lint": {
Expand All @@ -81,14 +81,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "apps/inventory/jest.config.ts",
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
"jestConfig": "apps/inventory/jest.config.ts"
}
},
"serve-static": {
Expand Down
9 changes: 1 addition & 8 deletions angular-monorepo/libs/orders/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "libs/orders/jest.config.ts",
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
"jestConfig": "libs/orders/jest.config.ts"
}
},
"lint": {
Expand Down
9 changes: 1 addition & 8 deletions angular-monorepo/libs/products/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "libs/products/jest.config.ts",
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
"jestConfig": "libs/products/jest.config.ts"
}
},
"lint": {
Expand Down
9 changes: 1 addition & 8 deletions angular-monorepo/libs/shared/ui/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "libs/shared/ui/jest.config.ts",
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
"jestConfig": "libs/shared/ui/jest.config.ts"
}
},
"lint": {
Expand Down
17 changes: 13 additions & 4 deletions angular-monorepo/nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
"inputs": ["production", "^production"],
"cache": true
},
"test": {
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
"cache": true
},
"e2e": {
"inputs": ["default", "^production"],
"cache": true
Expand All @@ -25,6 +21,19 @@
"{workspaceRoot}/eslint.config.js"
],
"cache": true
},
"@nx/jest:jest": {
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
"cache": true,
"options": {
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
}
}
},
"namedInputs": {
Expand Down
Loading

0 comments on commit 5bd23b0

Please sign in to comment.