Notes/apps/desktop/package.json

195 lines
5.7 KiB
JSON
Raw Normal View History

{
"name": "@triliumnext/desktop",
2025-06-07 12:46:18 +03:00
"version": "0.94.1",
"description": "Build your personal knowledge base with TriliumNext Notes",
"private": true,
"main": "main.cjs",
2025-05-03 00:26:37 +00:00
"dependencies": {
"@electron/remote": "2.1.2",
"better-sqlite3": "^11.9.1",
"electron-debug": "4.1.0",
"electron-dl": "4.0.0",
2025-04-26 11:38:39 +03:00
"electron-squirrel-startup": "1.0.1",
"jquery.fancytree": "2.38.5",
"jquery-hotkeys": "0.2.2"
},
"devDependencies": {
"@types/electron-squirrel-startup": "1.0.2",
"@triliumnext/server": "workspace:*",
"copy-webpack-plugin": "13.0.0",
"electron": "36.4.0",
"@electron-forge/cli": "7.8.1",
"@electron-forge/maker-deb": "7.8.1",
"@electron-forge/maker-dmg": "7.8.1",
"@electron-forge/maker-flatpak": "7.8.1",
"@electron-forge/maker-rpm": "7.8.1",
"@electron-forge/maker-squirrel": "7.8.1",
"@electron-forge/maker-zip": "7.8.1",
"@electron-forge/plugin-auto-unpack-natives": "7.8.1",
"prebuild-install": "^7.1.1"
},
"config": {
2025-05-23 23:29:54 +03:00
"forge": "./electron-forge/forge.config.cjs"
},
"scripts": {
"start-prod": "nx build desktop && cross-env TRILIUM_DATA_DIR=data TRILIUM_RESOURCE_DIR=dist TRILIUM_PORT=37841 electron dist/main.js"
},
2025-04-27 12:46:45 +03:00
"license": "AGPL-3.0-only",
"author": {
"name": "TriliumNext Notes Team",
"email": "contact@eliandoran.me",
"url": "https://github.com/TriliumNext/Notes"
2025-05-03 00:26:37 +00:00
},
"nx": {
2025-04-30 22:28:25 +03:00
"name": "desktop",
"targets": {
"build": {
"executor": "@nx/esbuild:esbuild",
"outputs": [
"{options.outputPath}"
],
2025-06-11 22:03:25 +03:00
"defaultConfiguration": "production",
"configurations": {
"production": {
"minify": true,
"sourcemap": false
},
"development": {
"minify": false,
"sourcemap": true
}
},
"options": {
"main": "apps/desktop/src/electron-main.ts",
"outputPath": "apps/desktop/dist",
"outputFileName": "main.js",
"tsConfig": "apps/desktop/tsconfig.app.json",
"platform": "node",
"external": [
"electron",
"@electron/remote",
"better-sqlite3",
"./xhr-sync-worker.js"
],
"format": [
"cjs"
],
2025-05-25 10:12:09 +03:00
"thirdParty": true,
"declaration": false,
2025-05-25 10:12:09 +03:00
"esbuildOptions": {
2025-05-25 20:38:06 +03:00
"splitting": false,
"loader": {
".css": "text"
}
2025-05-25 10:12:09 +03:00
},
"assets": [
{
"glob": "**/*",
"input": "apps/server/dist/node_modules",
"output": "node_modules"
},
{
"glob": "**/*",
"input": "apps/desktop/node_modules/@electron/remote",
"output": "node_modules/@electron/remote"
},
{
"glob": "**/*",
"input": "apps/server/dist/assets",
"output": "assets"
},
2025-05-25 16:42:00 +03:00
{
"glob": "**/*",
"input": "apps/desktop/src/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/desktop/src"
}
},
"rebuild-deps": {
"executor": "nx:run-commands",
2025-05-03 00:26:37 +00:00
"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\")"
}
2025-05-03 00:26:37 +00:00
}
2025-04-28 19:58:43 +03:00
},
"serve": {
"executor": "nx:run-commands",
2025-05-03 00:26:37 +00:00
"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
}
}
2025-04-24 15:04:34 +03:00
},
2025-05-05 10:27:52 +03:00
"serve-nodir": {
"executor": "nx:run-commands",
"dependsOn": [
"rebuild-deps"
],
"defaultConfiguration": "default",
"configurations": {
"default": {
"command": "electron main.cjs",
2025-05-05 10:27:52 +03:00
"cwd": "{projectRoot}/dist"
},
"nixos": {
"command": "nix-shell -p electron_35 --run \"electron {projectRoot}/dist/main.cjs\"",
2025-05-05 10:27:52 +03:00
"cwd": ".",
"forwardAllArgs": false
}
}
},
2025-04-26 02:12:52 +03:00
"electron-forge:make": {
2025-05-03 00:26:37 +00:00
"dependsOn": [
"build",
"rebuild-deps"
2025-05-03 00:26:37 +00:00
],
"command": "pnpm -C apps/desktop exec cross-env NODE_INSTALLER=npm electron-forge make dist"
2025-04-26 02:12:52 +03:00
},
"electron-forge:package": {
2025-05-03 00:26:37 +00:00
"dependsOn": [
"build",
"rebuild-deps"
2025-05-03 00:26:37 +00:00
],
"command": "pnpm -C apps/desktop exec cross-env NODE_INSTALLER=npm electron-forge package dist"
},
"electron-forge:start": {
"dependsOn": [
"build",
"rebuild-deps"
],
"command": "pnpm -C apps/desktop exec cross-env NODE_INSTALLER=npm TRILIUM_DATA_DIR=./data electron-forge start dist"
}
}
}
}