Skip to content

Commit

Permalink
chore(repo): speed up build of nx project (#19066)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz authored Sep 8, 2023
1 parent 41551a3 commit 660bfb3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
14 changes: 7 additions & 7 deletions graph/client/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"parallel": false
}
},
"build-base": {
"build-client": {
"executor": "@nx/webpack:webpack",
"options": {
"maxWorkers": 8,
Expand Down Expand Up @@ -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
}
},
Expand Down
1 change: 1 addition & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"build-ng",
"build-base",
"build-native",
"build-client",
"e2e",
"e2e-macos",
"test",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/nx/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 0 additions & 3 deletions packages/workspace/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

1 comment on commit 660bfb3

@vercel
Copy link

@vercel vercel bot commented on 660bfb3 Sep 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app
nx-dev-nrwl.vercel.app
nx.dev

Please sign in to comment.