mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-08-17 00:30:34 +03:00
refs https://github.com/TryGhost/DevOps/issues/45 - this switches the monorepo over to using Nx instead of Lerna, because we don't currently need the versioning+publishing capabilities - this also adds an `nx.json`, which allows us to enable task caching - also adds `build:ts` to the TS projects, which is cached for fast execution - how these interact with the dev.js script will hopefully soon be reworked to be a better experience
36 lines
791 B
JSON
36 lines
791 B
JSON
{
|
|
"tasksRunnerOptions": {
|
|
"default": {
|
|
"runner": "nx/tasks-runners/default",
|
|
"options": {
|
|
"cacheableOperations": [
|
|
"build:ts",
|
|
"lint",
|
|
"test",
|
|
"test:unit"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"namedInputs": {
|
|
"default": [
|
|
"{projectRoot}/**/*"
|
|
]
|
|
},
|
|
"targetDefaults": {
|
|
"build:ts": {
|
|
"dependsOn": [
|
|
"^build:ts"
|
|
],
|
|
"inputs": [
|
|
"default",
|
|
"^default"
|
|
],
|
|
"outputs": [
|
|
"{projectRoot}/build"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "./node_modules/nx/schemas/nx-schema.json"
|
|
}
|