mirror of
https://github.com/zadam/trilium.git
synced 2026-01-16 12:22:13 +01:00
Changed edit-docs from a simple wrapper script to a properly built Nix package using makeApp, similar to how desktop and server are built. Changes: - Added build script to apps/edit-docs/package.json - Created apps/edit-docs/scripts/build.ts based on desktop's build script - Added edit-docs:build task to root package.json - Changed flake.nix to use makeApp which: - Builds edit-docs with all dependencies bundled - Creates a standalone trilium-edit-docs executable - Can be installed with 'nix profile install' and run from any directory This makes edit-docs truly reusable - it can now be installed and run from any project without requiring the Trilium source tree.
24 lines
1.1 KiB
JSON
24 lines
1.1 KiB
JSON
{
|
|
"name": "@triliumnext/edit-docs",
|
|
"version": "0.101.3",
|
|
"private": true,
|
|
"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.",
|
|
"dependencies": {
|
|
"archiver": "7.0.1",
|
|
"better-sqlite3": "12.6.0"
|
|
},
|
|
"devDependencies": {
|
|
"@triliumnext/client": "workspace:*",
|
|
"@triliumnext/desktop": "workspace:*",
|
|
"@types/fs-extra": "11.0.4",
|
|
"copy-webpack-plugin": "13.0.1",
|
|
"electron": "39.2.7",
|
|
"fs-extra": "11.3.3"
|
|
},
|
|
"scripts": {
|
|
"build": "tsx scripts/build.ts",
|
|
"test-build": "vitest --config vitest.build.config.mts",
|
|
"edit-docs": "cross-env TRILIUM_PORT=37741 TRILIUM_DATA_DIR=data TRILIUM_INTEGRATION_TEST=memory-no-store tsx ../../scripts/electron-start.mts src/edit-docs.ts",
|
|
"edit-demo": "cross-env TRILIUM_PORT=37744 TRILIUM_DATA_DIR=data TRILIUM_INTEGRATION_TEST=memory-no-store DOCS_ROOT=../../../docs USER_GUIDE_ROOT=\"../../server/src/assets/doc_notes/en/User Guide\" tsx ../../scripts/electron-start.mts src/edit-demo.ts"
|
|
}
|
|
} |