chore(repo): speed up build of nx project (#19066)

This commit is contained in:
Jason Jean 2023-09-08 13:37:02 -04:00 committed by GitHub
parent 41551a3197
commit 660bfb3dc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 11 deletions

View File

@ -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
}
},

View File

@ -15,6 +15,7 @@
"build-ng",
"build-base",
"build-native",
"build-client",
"e2e",
"e2e-macos",
"test",

View File

@ -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",

View File

@ -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": {

View File

@ -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"
},