chore(repo): speed up build of nx project (#19066)
This commit is contained in:
parent
41551a3197
commit
660bfb3dc5
@ -30,7 +30,7 @@
|
||||
"parallel": false
|
||||
}
|
||||
},
|
||||
"build-base": {
|
||||
"build-client": {
|
||||
"executor": "@nx/webpack:webpack",
|
||||
"options": {
|
||||
"maxWorkers": 8,
|
||||
@ -185,27 +185,27 @@
|
||||
"executor": "@nx/webpack:dev-server",
|
||||
"configurations": {
|
||||
"dev": {
|
||||
"buildTarget": "graph-client:build-base:dev",
|
||||
"buildTarget": "graph-client:build-client:dev",
|
||||
"port": 4201
|
||||
},
|
||||
"nx-console": {
|
||||
"buildTarget": "graph-client:build-base:nx-console",
|
||||
"buildTarget": "graph-client:build-client:nx-console",
|
||||
"port": 4202
|
||||
},
|
||||
"release": {
|
||||
"buildTarget": "graph-client:build-base:release",
|
||||
"buildTarget": "graph-client:build-client:release",
|
||||
"port": 4203
|
||||
},
|
||||
"watch": {
|
||||
"buildTarget": "graph-client:build-base:watch",
|
||||
"buildTarget": "graph-client:build-client:watch",
|
||||
"port": 4204
|
||||
},
|
||||
"release-static": {
|
||||
"buildTarget": "graph-client:build-base:release-static",
|
||||
"buildTarget": "graph-client:build-client:release-static",
|
||||
"port": 4205
|
||||
},
|
||||
"dev-e2e": {
|
||||
"buildTarget": "graph-client:build-base:dev-e2e",
|
||||
"buildTarget": "graph-client:build-client:dev-e2e",
|
||||
"port": 4206
|
||||
}
|
||||
},
|
||||
|
||||
1
nx.json
1
nx.json
@ -15,6 +15,7 @@
|
||||
"build-ng",
|
||||
"build-base",
|
||||
"build-native",
|
||||
"build-client",
|
||||
"e2e",
|
||||
"e2e-macos",
|
||||
"test",
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
"homepage": "https://nx.dev",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "nx run-many --target build --parallel 8 --exclude nx-dev,typedoc-theme",
|
||||
"build": "nx run-many --target build --parallel 8 --exclude nx-dev,typedoc-theme,tools-documentation-create-embeddings",
|
||||
"commit": "czg",
|
||||
"check-commit": "node ./scripts/commit-lint.js",
|
||||
"check-format": "nx format:check --all",
|
||||
|
||||
@ -75,6 +75,7 @@
|
||||
"command": "echo hi"
|
||||
},
|
||||
"build": {
|
||||
"dependsOn": ["^build-client", "build-base", "build-native"],
|
||||
"executor": "nx:run-commands",
|
||||
"outputs": ["{workspaceRoot}/build/packages/nx"],
|
||||
"options": {
|
||||
|
||||
@ -79,9 +79,6 @@
|
||||
"outputs": ["{workspaceRoot}/build/packages/workspace"],
|
||||
"options": {
|
||||
"commands": [
|
||||
{
|
||||
"command": "node ./scripts/copy-graph-client.js"
|
||||
},
|
||||
{
|
||||
"command": "node ./scripts/copy-readme.js workspace"
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user