Skip to content

Commit

Permalink
ci: Improve Nx inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Jul 9, 2024
1 parent f418ca7 commit ec3071a
Showing 1 changed file with 28 additions and 30 deletions.
58 changes: 28 additions & 30 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}/tsconfig.json"
],
Expand All @@ -16,52 +15,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:knip": {
"cache": true,
"inputs": ["{workspaceRoot}/**/*"]
},
"test:sherif": {
"cache": true,
"inputs": ["{workspaceRoot}/**/package.json"]
},
"test:eslint": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["default", "^production", "{workspaceRoot}/eslint.config.js"]
},
"test:lib": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["default", "^public"],
"cache": true
"inputs": ["default", "^production"],
"outputs": ["{projectRoot}/coverage"]
},
"test:types": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["default", "^public"],
"cache": true
"inputs": ["default", "^production"]
},
"build": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["default", "^public"],
"outputs": ["{projectRoot}/build", "{projectRoot}/dist"],
"cache": true
"inputs": ["production", "^production"],
"outputs": ["{projectRoot}/build", "{projectRoot}/dist"]
},
"test:build": {
"dependsOn": ["build"],
"inputs": ["^public"],
"cache": true
},
"test:knip": {
"cache": true,
"inputs": ["{workspaceRoot}/**/*"]
},
"test:format": {
"cache": true,
"inputs": ["{workspaceRoot}/**/*"]
},
"test:sherif": {
"cache": true,
"inputs": ["{workspaceRoot}/**/*"]
"dependsOn": ["build"],
"inputs": ["production"]
}
}
}

0 comments on commit ec3071a

Please sign in to comment.