Skip to content

Commit

Permalink
feat: setup nx cloud workspace (#392)
Browse files Browse the repository at this point in the history
This commit sets up Nx Cloud for your Nx workspace, enabling distributed caching and the Nx Cloud GitHub integration for fast CI and improved developer experience.

You can access your Nx Cloud workspace by going to
https://cloud.nx.app/orgs/672d775fe7535d520b298d46/workspaces/672d7b30b76a0e014484fab5

**Note:** This commit attempts to maintain formatting of the nx.json file, however you may need to correct formatting by running an nx format command and committing the changes.
  • Loading branch information
Pangssu authored Nov 19, 2024
1 parent fcda381 commit 50ae48c
Showing 1 changed file with 46 additions and 15 deletions.
61 changes: 46 additions & 15 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"defaultBase": "develop",
"defaultBase": "dev",
"neverConnectToCloud": true,
"affected": {
"defaultBase": "develop"
"defaultBase": "dev"
},
"implicitDependencies": {
"nx.json": "*",
Expand All @@ -17,7 +17,7 @@
"default": {
"runner": "nx-cloud",
"options": {
"accessToken": "MDdkNmQwZWEtOGYwNy00ZjhkLWI5NGMtNjBiNGExY2Q5MzI2fHJlYWQ=",
"accessToken": "OTk3YTA2ZGUtOWQ3OC00MzAwLTk5ZDItZWMzYWM5MDUxMzgwfHJlYWQtd3JpdGU=",
"cacheableOperations": [
"lint",
"build",
Expand All @@ -38,7 +38,10 @@
"{projectRoot}/tsconfig.json",
"{projectRoot}/package.json"
],
"default": ["{projectRoot}/**/*", "configsWorkspace"],
"default": [
"{projectRoot}/**/*",
"configsWorkspace"
],
"srcGenerated": [
"{projectRoot}/src/contract-artifacts.ts",
"{projectRoot}/src/contract-deployed-artifacts.ts"
Expand All @@ -47,29 +50,52 @@
"{projectRoot}/src/**/*",
"!{projectRoot}/src/**/*.spec.ts"
],
"productionContracts": ["{projectRoot}/contracts/**/*"],
"production": ["productionSrc", "productionContracts"],
"testing": ["configsWorkspace", "default"]
"productionContracts": [
"{projectRoot}/contracts/**/*"
],
"production": [
"productionSrc",
"productionContracts"
],
"testing": [
"configsWorkspace",
"default"
]
},
"targetDefaults": {
"lint": {
"inputs": ["default"]
"inputs": [
"default"
]
},
"test": {
"inputs": ["default", "testing", "^production"],
"dependsOn": ["^build"]
"inputs": [
"default",
"testing",
"^production"
],
"dependsOn": [
"^build"
]
},
"generate": {
"dependsOn": ["^build"]
"dependsOn": [
"^build"
]
},
"build:contracts": {
"inputs": [
"configsProject",
"productionContracts",
"^productionContracts"
],
"dependsOn": ["^build"],
"outputs": ["{projectRoot}/artifacts", "{projectRoot}/forge-artifacts"]
"dependsOn": [
"^build"
],
"outputs": [
"{projectRoot}/artifacts",
"{projectRoot}/forge-artifacts"
]
},
"build": {
"inputs": [
Expand All @@ -78,8 +104,13 @@
"production",
"^production"
],
"dependsOn": ["^build", "build:contracts"],
"outputs": ["{projectRoot}/dist"]
"dependsOn": [
"^build",
"build:contracts"
],
"outputs": [
"{projectRoot}/dist"
]
}
}
}

0 comments on commit 50ae48c

Please sign in to comment.