mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 19:48:50 +03:00
5a72c5ad91
refs https://github.com/nrwl/nx/releases/tag/19.8.0 - this commit updates Nx to v19 - we need to add some extra commands to the dev script to stop and restart the Nx daemon, so it's ready and running before we execute a bunch of Nx commands concurrently - this also updates nx.json to the format needed for the latest version
42 lines
1.0 KiB
JSON
42 lines
1.0 KiB
JSON
{
|
|
"$schema": "./node_modules/nx/schemas/nx-schema.json",
|
|
"namedInputs": {
|
|
"default": ["{projectRoot}/**/*", "{workspaceRoot}/ghost/tsconfig.json"]
|
|
},
|
|
"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"
|
|
}
|