Ghost/nx.json
Daniel Lockyer 9bcca5122a Increased parallelisation of Nx processes
refs https://nx.dev/recipes/running-tasks/run-tasks-in-parallel

- CI has 4 cores and our local machines are also very powerful, so we
  can just set the default parallelisation to higher than is currently
  set to make things run quicker
2024-09-25 14:36:55 +02:00

43 lines
1.0 KiB
JSON

{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"namedInputs": {
"default": ["{projectRoot}/**/*", "{workspaceRoot}/ghost/tsconfig.json"]
},
"parallel": 4,
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
"inputs": [
{
"env": "GHOST_CDN_URL"
},
"default",
"^default"
],
"outputs": [
"{projectRoot}/dist",
"{projectRoot}/es",
"{projectRoot}/types",
"{projectRoot}/umd"
],
"cache": true
},
"build:ts": {
"dependsOn": ["^build:ts"],
"inputs": ["default", "^default"],
"outputs": ["{projectRoot}/build"],
"cache": true
},
"lint": {
"cache": true
},
"test": {
"cache": true
},
"test:unit": {
"cache": true
}
},
"cacheDirectory": ".nxcache"
}