Ghost/nx.json
Daniel Lockyer e990cbba01 Configured storing Nx cache in GHA to speed up builds
refs https://github.com/TryGhost/DevOps/issues/47

- this allows us to store and restore the cache for TS builds, which
  should speed up the whole process
2023-07-14 08:52:01 +02:00

37 lines
837 B
JSON

{
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": [
"build:ts",
"lint",
"test",
"test:unit"
],
"cacheDirectory": ".nxcache"
}
}
},
"namedInputs": {
"default": [
"{projectRoot}/**/*"
]
},
"targetDefaults": {
"build:ts": {
"dependsOn": [
"^build:ts"
],
"inputs": [
"default",
"^default"
],
"outputs": [
"{projectRoot}/build"
]
}
},
"$schema": "./node_modules/nx/schemas/nx-schema.json"
}