mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-12 20:02:28 +08:00
refactor(server): separate build config for serve
This commit is contained in:
parent
2f208a8302
commit
5444e6b9cb
@ -116,7 +116,7 @@
|
|||||||
"executor": "@nx/js:node",
|
"executor": "@nx/js:node",
|
||||||
"defaultConfiguration": "development",
|
"defaultConfiguration": "development",
|
||||||
"dependsOn": [
|
"dependsOn": [
|
||||||
"build"
|
"build-without-client"
|
||||||
],
|
],
|
||||||
"options": {
|
"options": {
|
||||||
"buildTarget": "server:build",
|
"buildTarget": "server:build",
|
||||||
@ -124,7 +124,7 @@
|
|||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"development": {
|
"development": {
|
||||||
"buildTarget": "server:build:development"
|
"buildTarget": "server:build-without-client"
|
||||||
},
|
},
|
||||||
"production": {
|
"production": {
|
||||||
"buildTarget": "server:build:production"
|
"buildTarget": "server:build:production"
|
||||||
@ -176,7 +176,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"build": {
|
"build-without-client": {
|
||||||
"executor": "@nx/esbuild:esbuild",
|
"executor": "@nx/esbuild:esbuild",
|
||||||
"outputs": [
|
"outputs": [
|
||||||
"{options.outputPath}"
|
"{options.outputPath}"
|
||||||
@ -220,6 +220,12 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"build": {
|
||||||
|
"dependsOn": [
|
||||||
|
"client:build",
|
||||||
|
"build"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user