mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 11:54:33 +03:00
a9c9202b5c
refs https://github.com/TryGhost/DevOps/issues/122 - this allows us to DRY up some of the other configuration we have dotted around and fixes a niche bug with overlapping builds that we were seeing before, because Nx should only allow one build at a time
54 lines
1.3 KiB
JSON
54 lines
1.3 KiB
JSON
{
|
|
"tasksRunnerOptions": {
|
|
"default": {
|
|
"runner": "nx/tasks-runners/default",
|
|
"options": {
|
|
"cacheableOperations": [
|
|
"build",
|
|
"build:ts",
|
|
"lint",
|
|
"test",
|
|
"test:unit"
|
|
],
|
|
"useDaemonProcess": false,
|
|
"cacheDirectory": ".nxcache"
|
|
}
|
|
}
|
|
},
|
|
"namedInputs": {
|
|
"default": [
|
|
"{projectRoot}/**/*",
|
|
"{workspaceRoot}/ghost/tsconfig.json"
|
|
]
|
|
},
|
|
"targetDefaults": {
|
|
"build": {
|
|
"dependsOn": [
|
|
"^build"
|
|
],
|
|
"inputs": [
|
|
"default",
|
|
"^default"
|
|
],
|
|
"outputs": [
|
|
"{projectRoot}/dist",
|
|
"{projectRoot}/es",
|
|
"{projectRoot}/umd"
|
|
]
|
|
},
|
|
"build:ts": {
|
|
"dependsOn": [
|
|
"^build:ts"
|
|
],
|
|
"inputs": [
|
|
"default",
|
|
"^default"
|
|
],
|
|
"outputs": [
|
|
"{projectRoot}/build"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "./node_modules/nx/schemas/nx-schema.json"
|
|
}
|