Skip to content

Commit

Permalink
feat(nx-cloud): setup nx cloud workspace
Browse files Browse the repository at this point in the history
    
This commit set up Nx Cloud for your Nx workspace enabling distributed caching
and GitHub integration for fast CI and improved Developer Experience.

You can access your Nx Cloud workspace by going to 
https://cloud.nx.app/orgs/670fcaceb56d70b74ae45903/workspaces/670fcae292f509d0a4f1d01c

**Note:** This commit attempts to maintain formatting of the nx.json, however you may need to correct formatting by running an nx format command and committing the changes.
  • Loading branch information
vicb committed Oct 16, 2024
1 parent 3678bbd commit 120bce2
Showing 1 changed file with 55 additions and 15 deletions.
70 changes: 55 additions & 15 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,22 @@
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
"inputs": ["production", "^production"],
"dependsOn": [
"^build"
],
"inputs": [
"production",
"^production"
],
"cache": true
},
"@nx/jest:jest": {
"cache": true,
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
"inputs": [
"default",
"^production",
"{workspaceRoot}/jest.preset.js"
],
"options": {
"passWithNoTests": true
},
Expand All @@ -20,26 +29,45 @@
}
},
"@nx/eslint:lint": {
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
"inputs": [
"default",
"{workspaceRoot}/.eslintrc.json"
],
"cache": true
},
"@nx/js:tsc": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
"dependsOn": [
"^build"
],
"inputs": [
"production",
"^production"
]
},
"@nx/vite:build": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
"dependsOn": [
"^build"
],
"inputs": [
"production",
"^production"
]
},
"@nx/vite:test": {
"cache": true,
"inputs": ["default", "^production"]
"inputs": [
"default",
"^production"
]
}
},
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"default": [
"{projectRoot}/**/*",
"sharedGlobals"
],
"production": [
"default",
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
Expand All @@ -48,7 +76,9 @@
"!{projectRoot}/.eslintrc.json",
"!{projectRoot}/src/test-setup.[jt]s"
],
"sharedGlobals": ["{workspaceRoot}/babel.config.json"]
"sharedGlobals": [
"{workspaceRoot}/babel.config.json"
]
},
"generators": {
"@nx/web:application": {
Expand All @@ -69,7 +99,14 @@
"plugin": "@nx/eslint/plugin",
"options": {
"targetName": "lint",
"extensions": ["ts", "tsx", "js", "jsx", "html", "vue"]
"extensions": [
"ts",
"tsx",
"js",
"jsx",
"html",
"vue"
]
}
},
{
Expand All @@ -96,7 +133,10 @@
"options": {
"targetName": "benchmark"
},
"include": ["apps/run/**/*"]
"include": [
"apps/run/**/*"
]
}
]
}
],
"nxCloudId": "670fcae292f509d0a4f1d01c"
}

0 comments on commit 120bce2

Please sign in to comment.