mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
57 lines
1.5 KiB
JSON
57 lines
1.5 KiB
JSON
{
|
|
"name": "@triliumnext/edit-docs",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"devDependencies": {
|
|
"@electron/rebuild": "4.0.1",
|
|
"@triliumnext/client": "workspace:*",
|
|
"@triliumnext/desktop": "workspace:*",
|
|
"@types/fs-extra": "11.0.4",
|
|
"copy-webpack-plugin": "13.0.0",
|
|
"electron": "35.1.5",
|
|
"fs-extra": "11.3.0"
|
|
},
|
|
"nx": {
|
|
"name": "edit-docs",
|
|
"targets": {
|
|
"rebuild-deps": {
|
|
"executor": "nx:run-commands",
|
|
"dependsOn": [ "build" ],
|
|
"defaultConfiguration": "default",
|
|
"cache": true,
|
|
"configurations": {
|
|
"default": {
|
|
"command": "cross-env DEBUG=* tsx scripts/rebuild.mts",
|
|
"cwd": "{projectRoot}"
|
|
},
|
|
"nixos": {
|
|
"command": "electron-rebuild -f -v $(nix-shell -p electron_35 --run \"electron --version\") dist/main.js -m dist",
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
}
|
|
},
|
|
"serve": {
|
|
"executor": "nx:run-commands",
|
|
"dependsOn": [
|
|
"rebuild-deps"
|
|
],
|
|
"defaultConfiguration": "default",
|
|
"configurations": {
|
|
"default": {
|
|
"command": "electron .",
|
|
"cwd": "./apps/edit-docs/dist"
|
|
},
|
|
"nixos": {
|
|
"command": "nix-shell -p electron_35 --run \"electron .\"",
|
|
"forwardAllArgs": false,
|
|
"cwd": "./apps/edit-docs/dist"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"archiver": "7.0.1"
|
|
}
|
|
}
|