mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(nx/desktop): set up serve
This commit is contained in:
parent
7671143233
commit
317d95fd60
@ -1 +1,2 @@
|
||||
TRILIUM_PORT=37741
|
||||
TRILIUM_DATA_DIR=./apps/desktop/data
|
@ -46,24 +46,13 @@
|
||||
"description": "Build your personal knowledge base with TriliumNext Notes",
|
||||
"nx": {
|
||||
"targets": {
|
||||
"postbuild": {
|
||||
"dependsOn": [ "build" ],
|
||||
"command": "electron-rebuild apps/desktop/dist/main.js -m apps/desktop/dist"
|
||||
},
|
||||
"serve": {
|
||||
"executor": "@nx/js:node",
|
||||
"defaultConfiguration": "development",
|
||||
"dependsOn": [
|
||||
"build"
|
||||
],
|
||||
"options": {
|
||||
"buildTarget": "@triliumnext/desktop:build",
|
||||
"runBuildTargetDependencies": false
|
||||
},
|
||||
"configurations": {
|
||||
"development": {
|
||||
"buildTarget": "@triliumnext/desktop:build:development"
|
||||
},
|
||||
"production": {
|
||||
"buildTarget": "@triliumnext/desktop:build:production"
|
||||
}
|
||||
}
|
||||
"dependsOn": [ "postbuild" ],
|
||||
"command": "electron apps/desktop/dist/main.js"
|
||||
},
|
||||
"electron-forge:make": {
|
||||
"dependsOn": [ "build" ],
|
||||
|
Loading…
x
Reference in New Issue
Block a user