mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-30 22:34:01 -05: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
42 lines
1 KiB
JSON
42 lines
1 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"
|
|
}
|