mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 10:42:45 +03:00
9bcca5122a
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
43 lines
1.0 KiB
JSON
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"
|
|
}
|