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 "parallel": false
} }
}, },
"build-base": { "build-client": {
"executor": "@nx/webpack:webpack", "executor": "@nx/webpack:webpack",
"options": { "options": {
"maxWorkers": 8, "maxWorkers": 8,
@ -185,27 +185,27 @@
"executor": "@nx/webpack:dev-server", "executor": "@nx/webpack:dev-server",
"configurations": { "configurations": {
"dev": { "dev": {
"buildTarget": "graph-client:build-base:dev", "buildTarget": "graph-client:build-client:dev",
"port": 4201 "port": 4201
}, },
"nx-console": { "nx-console": {
"buildTarget": "graph-client:build-base:nx-console", "buildTarget": "graph-client:build-client:nx-console",
"port": 4202 "port": 4202
}, },
"release": { "release": {
"buildTarget": "graph-client:build-base:release", "buildTarget": "graph-client:build-client:release",
"port": 4203 "port": 4203
}, },
"watch": { "watch": {
"buildTarget": "graph-client:build-base:watch", "buildTarget": "graph-client:build-client:watch",
"port": 4204 "port": 4204
}, },
"release-static": { "release-static": {
"buildTarget": "graph-client:build-base:release-static", "buildTarget": "graph-client:build-client:release-static",
"port": 4205 "port": 4205
}, },
"dev-e2e": { "dev-e2e": {
"buildTarget": "graph-client:build-base:dev-e2e", "buildTarget": "graph-client:build-client:dev-e2e",
"port": 4206 "port": 4206
} }
}, },

View File

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

View File

@ -4,7 +4,7 @@
"homepage": "https://nx.dev", "homepage": "https://nx.dev",
"private": true, "private": true,
"scripts": { "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", "commit": "czg",
"check-commit": "node ./scripts/commit-lint.js", "check-commit": "node ./scripts/commit-lint.js",
"check-format": "nx format:check --all", "check-format": "nx format:check --all",

View File

@ -75,6 +75,7 @@
"command": "echo hi" "command": "echo hi"
}, },
"build": { "build": {
"dependsOn": ["^build-client", "build-base", "build-native"],
"executor": "nx:run-commands", "executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/build/packages/nx"], "outputs": ["{workspaceRoot}/build/packages/nx"],
"options": { "options": {

View File

@ -79,9 +79,6 @@
"outputs": ["{workspaceRoot}/build/packages/workspace"], "outputs": ["{workspaceRoot}/build/packages/workspace"],
"options": { "options": {
"commands": [ "commands": [
{
"command": "node ./scripts/copy-graph-client.js"
},
{ {
"command": "node ./scripts/copy-readme.js workspace" "command": "node ./scripts/copy-readme.js workspace"
}, },