mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
9932454730
no issue - Running `yarn test:unit` fails unless you've previously run `yarn build:ts`. This change tells `nx` about this dependency, so it will run `yarn build:ts` before `yarn test:unit`. It should take advantage of the nx cache though, so it will only run the `build:ts` task if necessary
44 lines
1.1 KiB
JSON
44 lines
1.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": {
|
|
"dependsOn": ["^build:ts"],
|
|
"cache": true
|
|
}
|
|
},
|
|
"cacheDirectory": ".nxcache"
|
|
}
|