Skip to content

Commit

Permalink
feat(nx-cloud): setup nx workspace (#462)
Browse files Browse the repository at this point in the history
feat(nx-cloud): setup nx cloud workspace 
    
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/64fde86e9ef0668418b84bea/workspaces/672a30de5dd6176980bcbdbf

**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
dharmesh-hemaram committed Nov 5, 2024
1 parent 3a55637 commit 1d586f0
Showing 1 changed file with 17 additions and 69 deletions.
86 changes: 17 additions & 69 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,18 @@
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"neverConnectToCloud": true,
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
"inputs": ["production", "^production"],
"cache": true
},
"e2e": {
"inputs": ["default", "^production"],
"cache": true
},
"@nx/eslint:lint": {
"inputs": ["default", "{workspaceRoot}/.eslintrc.json", "{workspaceRoot}/.eslintignore"],
"cache": true
},
"package": {
"cache": true
},
"build": { "dependsOn": ["^build"], "inputs": ["production", "^production"], "cache": true },
"e2e": { "inputs": ["default", "^production"], "cache": true },
"@nx/eslint:lint": { "inputs": ["default", "{workspaceRoot}/.eslintrc.json", "{workspaceRoot}/.eslintignore"], "cache": true },
"package": { "cache": true },
"@nx/jest:jest": {
"cache": true,
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
"options": {
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
}
},
"@nx/js:tsc": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
"options": { "passWithNoTests": true },
"configurations": { "ci": { "ci": true, "codeCoverage": true } }
},
"@nx/js:swc": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
}
"@nx/js:tsc": { "cache": true, "dependsOn": ["^build"], "inputs": ["production", "^production"] },
"@nx/js:swc": { "cache": true, "dependsOn": ["^build"], "inputs": ["production", "^production"] }
},
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
Expand All @@ -56,34 +29,15 @@
},
"generators": {
"@nx/react": {
"application": {
"babel": true,
"style": "scss",
"linter": "eslint",
"bundler": "webpack"
},
"component": {
"style": "scss"
},
"library": {
"style": "scss",
"linter": "eslint",
"unitTestRunner": "jest"
}
"application": { "babel": true, "style": "scss", "linter": "eslint", "bundler": "webpack" },
"component": { "style": "scss" },
"library": { "style": "scss", "linter": "eslint", "unitTestRunner": "jest" }
},
"@nx/web:application": {
"style": "css",
"linter": "eslint",
"unitTestRunner": "jest",
"e2eTestRunner": "cypress"
}
"@nx/web:application": { "style": "css", "linter": "eslint", "unitTestRunner": "jest", "e2eTestRunner": "cypress" }
},
"useInferencePlugins": false,
"release": {
"git": {
"commitMessage": "chore(release): release ${version}",
"push": true
},
"git": { "commitMessage": "chore(release): release ${version}", "push": true },
"projects": [
"core-common",
"core-extension",
Expand Down Expand Up @@ -111,14 +65,8 @@
"firebase-storage",
"vision"
],
"changelog": {
"workspaceChangelog": {
"file": false,
"createRelease": "github"
}
},
"version": {
"preVersionCommand": "npx nx run-many --targets=lint,test,build"
}
}
"changelog": { "workspaceChangelog": { "file": false, "createRelease": "github" } },
"version": { "preVersionCommand": "npx nx run-many --targets=lint,test,build" }
},
"nxCloudId": "672a30de5dd6176980bcbdbf"
}

0 comments on commit 1d586f0

Please sign in to comment.