mirror of
https://github.com/zadam/trilium.git
synced 2026-01-18 12:34:24 +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.
18 lines
357 B
TypeScript
18 lines
357 B
TypeScript
/// <reference types='vitest' />
|
|
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig(() => ({
|
|
root: __dirname,
|
|
cacheDir: '../../node_modules/.vite/apps/edit-docs',
|
|
plugins: [],
|
|
test: {
|
|
watch: false,
|
|
globals: true,
|
|
environment: "node",
|
|
include: ['spec/build-checks/**'],
|
|
reporters: [
|
|
"verbose"
|
|
]
|
|
},
|
|
}));
|