Skip to content

Commit

Permalink
feat: nx workspace setup
Browse files Browse the repository at this point in the history
>
>
Co-authored-by: Persists jonas@mennicke.com
  • Loading branch information
KonsumGandalf committed Apr 25, 2024
1 parent df904a3 commit a5d2596
Show file tree
Hide file tree
Showing 4 changed files with 493 additions and 7 deletions.
7 changes: 5 additions & 2 deletions apps/frontend/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"tags": [],
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:application",
"executor": "@angular-devkit/build-angular:browser",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/apps/frontend",
Expand Down Expand Up @@ -37,9 +37,12 @@
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true
"sourceMap": true,
"namedChunks": true
}
},
"defaultConfiguration": "production"
Expand Down
15 changes: 15 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
"codeCoverage": true
}
}
},
"@angular-devkit/build-angular:browser": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
}
},
"plugins": [
Expand All @@ -64,6 +69,16 @@
"serveTargetName": "serve",
"previewTargetName": "preview"
}
},
{
"plugin": "@nx/vite/plugin",
"options": {
"buildTargetName": "build",
"testTargetName": "test",
"serveTargetName": "serve",
"previewTargetName": "preview",
"serveStaticTargetName": "serve-static"
}
}
],
"generators": {
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"@nx/nest": "18.3.3",
"@nx/node": "18.3.3",
"@nx/playwright": "18.3.3",
"@nx/vite": "18.3.3",
"@nx/web": "18.3.3",
"@nx/webpack": "18.3.3",
"@nx/workspace": "18.3.3",
Expand All @@ -55,6 +56,7 @@
"@types/node": "18.16.9",
"@typescript-eslint/eslint-plugin": "^7.3.0",
"@typescript-eslint/parser": "^7.3.0",
"@vitest/ui": "^1.3.1",
"eslint": "~8.57.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-playwright": "^0.15.3",
Expand All @@ -67,6 +69,8 @@
"ts-jest": "^29.1.0",
"ts-node": "10.9.1",
"typescript": "~5.4.2",
"vite": "~5.0.0",
"vitest": "^1.3.1",
"webpack-cli": "^5.1.4"
}
}

0 comments on commit a5d2596

Please sign in to comment.