mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
131 lines
3.7 KiB
JSON
131 lines
3.7 KiB
JSON
{
|
|
"name": "@triliumnext/edit-docs",
|
|
"version": "0.0.1",
|
|
"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": "^11.9.1"
|
|
},
|
|
"devDependencies": {
|
|
"@triliumnext/client": "workspace:*",
|
|
"@triliumnext/desktop": "workspace:*",
|
|
"@types/fs-extra": "11.0.4",
|
|
"copy-webpack-plugin": "13.0.0",
|
|
"electron": "36.3.1",
|
|
"fs-extra": "11.3.0"
|
|
},
|
|
"nx": {
|
|
"name": "edit-docs",
|
|
"implicitDependencies": [
|
|
"server"
|
|
],
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nx/esbuild:esbuild",
|
|
"outputs": [
|
|
"{options.outputPath}"
|
|
],
|
|
"options": {
|
|
"main": "apps/edit-docs/src/electron-docs-main.ts",
|
|
"outputPath": "apps/edit-docs/dist",
|
|
"outputFileName": "main.js",
|
|
"tsConfig": "apps/edit-docs/tsconfig.app.json",
|
|
"platform": "node",
|
|
"external": [
|
|
"electron",
|
|
"@electron/remote",
|
|
"better-sqlite3",
|
|
"./xhr-sync-worker.js"
|
|
],
|
|
"format": [
|
|
"cjs"
|
|
],
|
|
"minify": true,
|
|
"thirdParty": true,
|
|
"esbuildOptions": {
|
|
"splitting": false,
|
|
"loader": {
|
|
".css": "text"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"rebuild-deps": {
|
|
"executor": "nx:run-commands",
|
|
"dependsOn": [
|
|
"build"
|
|
],
|
|
"defaultConfiguration": "default",
|
|
"cache": true,
|
|
"configurations": {
|
|
"default": {
|
|
"command": "cross-env DEBUG=* tsx scripts/electron-rebuild.mts {projectRoot}/dist"
|
|
},
|
|
"nixos": {
|
|
"command": "cross-env DEBUG=* tsx scripts/electron-rebuild.mts {projectRoot}/dist $(nix-shell -p electron_35 --run \"electron --version\")"
|
|
}
|
|
}
|
|
},
|
|
"serve": {
|
|
"executor": "nx:run-commands",
|
|
"dependsOn": [
|
|
"rebuild-deps"
|
|
],
|
|
"defaultConfiguration": "default",
|
|
"configurations": {
|
|
"default": {
|
|
"command": "electron main.cjs",
|
|
"cwd": "{projectRoot}/dist"
|
|
},
|
|
"nixos": {
|
|
"command": "nix-shell -p electron_35 --run \"electron {projectRoot}/dist/main.cjs\"",
|
|
"cwd": ".",
|
|
"forwardAllArgs": false
|
|
}
|
|
}
|
|
},
|
|
"serve-nodir": {
|
|
"executor": "nx:run-commands",
|
|
"dependsOn": [
|
|
"rebuild-deps"
|
|
],
|
|
"defaultConfiguration": "default",
|
|
"configurations": {
|
|
"default": {
|
|
"command": "electron main.cjs",
|
|
"cwd": "{projectRoot}/dist"
|
|
},
|
|
"nixos": {
|
|
"command": "nix-shell -p electron_35 --run \"electron {projectRoot}/dist/main.cjs\"",
|
|
"cwd": ".",
|
|
"forwardAllArgs": false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |