Skip to content

Commit

Permalink
ci: Improve Nx inputs (#7702)
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins authored Jul 9, 2024
1 parent 14d9c49 commit 362f8e6
Showing 1 changed file with 29 additions and 31 deletions.
60 changes: 29 additions & 31 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"namedInputs": {
"sharedGlobals": [
"{workspaceRoot}/.nvmrc",
"{workspaceRoot}/eslint.config.js",
"{workspaceRoot}/package.json",
"{workspaceRoot}/scripts/getTsupConfig.js",
"{workspaceRoot}/tsconfig.json"
Expand All @@ -17,52 +16,51 @@
"{projectRoot}/**/*",
"!{projectRoot}/**/*.md"
],
"public": [
"production": [
"default",
"{projectRoot}/build",
"{projectRoot}/dist",
"!{projectRoot}/tests/**/*",
"!{projectRoot}/eslint.config.js"
]
},
"targetDefaults": {
"test:lib": {
"dependsOn": ["^build"],
"inputs": ["default", "^public"],
"outputs": ["{projectRoot}/coverage"],
"cache": true
"test:format": {
"cache": true,
"inputs": ["{workspaceRoot}/**/*"]
},
"test:eslint": {
"dependsOn": ["^build"],
"inputs": ["default", "^public"],
"cache": true
"test:knip": {
"cache": true,
"inputs": ["{workspaceRoot}/**/*"]
},
"test:types": {
"dependsOn": ["^build"],
"inputs": ["default", "^public"],
"cache": true
"test:sherif": {
"cache": true,
"inputs": ["{workspaceRoot}/**/package.json"]
},
"test:build": {
"dependsOn": ["build"],
"inputs": ["default", "^public"],
"cache": true
"test:eslint": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["default", "^production", "{workspaceRoot}/eslint.config.js"]
},
"build": {
"test:lib": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["default", "^public"],
"outputs": ["{projectRoot}/build", "{projectRoot}/dist"],
"cache": true
"inputs": ["default", "^production"],
"outputs": ["{projectRoot}/coverage"]
},
"test:knip": {
"test:types": {
"cache": true,
"inputs": ["{workspaceRoot}/**/*"]
"dependsOn": ["^build"],
"inputs": ["default", "^production"]
},
"test:format": {
"build": {
"cache": true,
"inputs": ["{workspaceRoot}/**/*"]
"dependsOn": ["^build"],
"inputs": ["production", "^production"],
"outputs": ["{projectRoot}/build", "{projectRoot}/dist"]
},
"test:sherif": {
"test:build": {
"cache": true,
"inputs": ["{workspaceRoot}/**/*"]
"dependsOn": ["build"],
"inputs": ["production"]
}
}
}

0 comments on commit 362f8e6

Please sign in to comment.