2025-04-29 12:50:05 +03:00
{
"name" : "@triliumnext/edit-docs" ,
"version" : "0.0.1" ,
"private" : true ,
2025-05-03 03:14:23 +03:00
"description" : "Desktop version of Trilium which imports the demo database (presented to new users at start-up) or the user guide and other documentation and saves the modifications for committing." ,
2025-05-25 12:16:57 +03:00
"dependencies" : {
"archiver" : "7.0.1" ,
"better-sqlite3" : "^11.9.1"
} ,
2025-04-29 12:50:05 +03:00
"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-06-20 02:47:20 +00:00
"electron" : "36.5.0" ,
2025-04-29 12:50:05 +03:00
"fs-extra" : "11.3.0"
} ,
"nx" : {
"name" : "edit-docs" ,
2025-05-10 15:20:25 +03:00
"implicitDependencies" : [
"server"
] ,
2025-04-29 12:50:05 +03:00
"targets" : {
2025-05-25 11:47:03 +03:00
"build" : {
"executor" : "@nx/esbuild:esbuild" ,
"outputs" : [
"{options.outputPath}"
] ,
"options" : {
2025-05-27 14:03:54 +03:00
"main" : "apps/edit-docs/src/edit-docs.ts" ,
2025-05-25 11:47:03 +03:00
"outputPath" : "apps/edit-docs/dist" ,
"tsConfig" : "apps/edit-docs/tsconfig.app.json" ,
"platform" : "node" ,
2025-05-27 14:03:54 +03:00
"additionalEntryPoints" : [
"apps/edit-docs/src/edit-demo.ts"
] ,
2025-05-25 11:47:03 +03:00
"external" : [
"electron" ,
"@electron/remote" ,
"better-sqlite3" ,
"./xhr-sync-worker.js"
] ,
"format" : [
"cjs"
] ,
2025-05-27 14:03:54 +03:00
"minify" : false ,
2025-05-25 20:38:06 +03:00
"thirdParty" : true ,
2025-05-26 19:35:42 +03:00
"declaration" : false ,
2025-05-25 20:38:06 +03:00
"esbuildOptions" : {
"splitting" : false ,
"loader" : {
".css" : "text"
}
} ,
2025-05-25 11:47:03 +03:00
"assets" : [
{
"glob" : "**/*" ,
"input" : "apps/server/dist/node_modules" ,
"output" : "node_modules"
} ,
{
"glob" : "**/*" ,
"input" : "apps/server/dist/assets" ,
"output" : "assets"
} ,
{
"glob" : "**/*" ,
"input" : "apps/server/dist/public" ,
"output" : "public"
} ,
{
"glob" : "xhr-sync-worker.js" ,
"input" : "apps/server/node_modules/jsdom/lib/jsdom/living/xhr" ,
"output" : ""
}
] ,
"declarationRootDir" : "apps/edit-docs/src"
}
} ,
2025-05-02 20:02:29 +03:00
"rebuild-deps" : {
2025-04-30 14:45:42 +03:00
"executor" : "nx:run-commands" ,
2025-05-06 09:09:56 +03:00
"dependsOn" : [
"build"
] ,
2025-04-30 14:45:42 +03:00
"defaultConfiguration" : "default" ,
"cache" : true ,
"configurations" : {
"default" : {
2025-05-06 09:09:56 +03:00
"command" : "cross-env DEBUG=* tsx scripts/electron-rebuild.mts {projectRoot}/dist"
2025-04-30 14:45:42 +03:00
} ,
"nixos" : {
2025-05-13 21:33:07 +03:00
"command" : "cross-env DEBUG=* tsx scripts/electron-rebuild.mts {projectRoot}/dist $(nix-shell -p electron_35 --run \"electron --version\")"
2025-04-30 14:45:42 +03:00
}
2025-05-06 09:09:56 +03:00
}
2025-04-30 14:45:42 +03:00
} ,
2025-05-27 14:03:54 +03:00
"edit-docs" : {
"executor" : "nx:run-commands" ,
"dependsOn" : [
"rebuild-deps"
] ,
"defaultConfiguration" : "default" ,
"configurations" : {
"default" : {
"command" : "electron edit-docs.cjs" ,
"cwd" : "{projectRoot}/dist"
} ,
"nixos" : {
"command" : "nix-shell -p electron_35 --run \"electron {projectRoot}/dist/edit-docs.cjs\"" ,
"cwd" : "." ,
"forwardAllArgs" : false
}
}
} ,
"edit-demo" : {
2025-04-30 14:45:42 +03:00
"executor" : "nx:run-commands" ,
"dependsOn" : [
2025-05-02 20:02:29 +03:00
"rebuild-deps"
2025-04-30 14:45:42 +03:00
] ,
"defaultConfiguration" : "default" ,
"configurations" : {
"default" : {
2025-05-27 14:03:54 +03:00
"command" : "electron edit-demo.cjs" ,
2025-05-25 11:47:03 +03:00
"cwd" : "{projectRoot}/dist"
} ,
"nixos" : {
2025-05-27 14:03:54 +03:00
"command" : "nix-shell -p electron_35 --run \"electron {projectRoot}/dist/edit-demo.cjs\"" ,
2025-05-25 11:47:03 +03:00
"cwd" : "." ,
"forwardAllArgs" : false
}
}
2025-04-29 12:50:05 +03:00
}
}
2025-05-25 12:16:57 +03:00
}
2025-05-25 11:47:03 +03:00
}