2025-04-29 12:50:05 +03:00
|
|
|
{
|
|
|
|
"name": "@triliumnext/edit-docs",
|
|
|
|
"version": "0.0.1",
|
|
|
|
"private": true,
|
|
|
|
"devDependencies": {
|
|
|
|
"@triliumnext/client": "workspace:*",
|
|
|
|
"@triliumnext/desktop": "workspace:*",
|
|
|
|
"@types/fs-extra": "11.0.4",
|
2025-04-30 14:45:42 +03:00
|
|
|
"copy-webpack-plugin": "13.0.0",
|
2025-04-29 12:50:05 +03:00
|
|
|
"fs-extra": "11.3.0"
|
|
|
|
},
|
|
|
|
"nx": {
|
|
|
|
"name": "edit-docs",
|
|
|
|
"targets": {
|
2025-04-30 14:45:42 +03:00
|
|
|
"postbuild": {
|
|
|
|
"executor": "nx:run-commands",
|
|
|
|
"dependsOn": [
|
|
|
|
"build"
|
|
|
|
],
|
|
|
|
"defaultConfiguration": "default",
|
|
|
|
"cache": true,
|
|
|
|
"configurations": {
|
|
|
|
"default": {
|
|
|
|
"command": "electron-rebuild -f {projectRoot}/dist/main.js -m {projectRoot}/dist"
|
|
|
|
},
|
|
|
|
"nixos": {
|
|
|
|
"command": "electron-rebuild -f -v $(nix-shell -p electron_35 --run \"electron --version\") ${projectRoot}/dist/main.js -m ${projectRoot}/dist"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2025-04-29 12:50:05 +03:00
|
|
|
"serve": {
|
2025-04-30 14:45:42 +03:00
|
|
|
"executor": "nx:run-commands",
|
|
|
|
"dependsOn": [
|
|
|
|
"postbuild"
|
|
|
|
],
|
|
|
|
"defaultConfiguration": "default",
|
|
|
|
"configurations": {
|
|
|
|
"default": {
|
|
|
|
"command": "electron .",
|
|
|
|
"cwd": "{projectRoot}/dist"
|
|
|
|
},
|
|
|
|
"nixos": {
|
|
|
|
"command": "nix-shell -p electron_35 --run \"electron {projectRoot}/dist/main.js\"",
|
|
|
|
"cwd": ".",
|
|
|
|
"forwardAllArgs": false
|
|
|
|
}
|
|
|
|
}
|
2025-04-29 12:50:05 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|