mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 19:49:01 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			134 lines
		
	
	
		
			3.8 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			134 lines
		
	
	
		
			3.8 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": "^12.0.0"
 | |
|   },
 | |
|   "devDependencies": {
 | |
|     "@triliumnext/client": "workspace:*",
 | |
|     "@triliumnext/desktop": "workspace:*",
 | |
|     "@types/fs-extra": "11.0.4",
 | |
|     "copy-webpack-plugin": "13.0.0",
 | |
|     "electron": "37.2.6",
 | |
|     "fs-extra": "11.3.1"
 | |
|   },
 | |
|   "nx": {
 | |
|     "name": "edit-docs",
 | |
|     "implicitDependencies": [
 | |
|       "server"
 | |
|     ],
 | |
|     "targets": {
 | |
|       "build": {
 | |
|         "executor": "@nx/esbuild:esbuild",
 | |
|         "outputs": [
 | |
|           "{options.outputPath}"
 | |
|         ],
 | |
|         "options": {
 | |
|           "main": "apps/edit-docs/src/edit-docs.ts",
 | |
|           "outputPath": "apps/edit-docs/dist",
 | |
|           "tsConfig": "apps/edit-docs/tsconfig.app.json",
 | |
|           "platform": "node",
 | |
|           "additionalEntryPoints": [
 | |
|             "apps/edit-docs/src/edit-demo.ts"
 | |
|           ],
 | |
|           "external": [
 | |
|             "electron",
 | |
|             "@electron/remote",
 | |
|             "better-sqlite3",
 | |
|             "./xhr-sync-worker.js"
 | |
|           ],
 | |
|           "format": [
 | |
|             "cjs"
 | |
|           ],
 | |
|           "minify": false,
 | |
|           "thirdParty": true,
 | |
|           "declaration": false,
 | |
|           "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\")"
 | |
|           }
 | |
|         }
 | |
|       },
 | |
|       "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": {
 | |
|         "executor": "nx:run-commands",
 | |
|         "dependsOn": [
 | |
|           "rebuild-deps"
 | |
|         ],
 | |
|         "defaultConfiguration": "default",
 | |
|         "configurations": {
 | |
|           "default": {
 | |
|             "command": "electron edit-demo.cjs",
 | |
|             "cwd": "{projectRoot}/dist"
 | |
|           },
 | |
|           "nixos": {
 | |
|             "command": "nix-shell -p electron_35 --run \"electron {projectRoot}/dist/edit-demo.cjs\"",
 | |
|             "cwd": ".",
 | |
|             "forwardAllArgs": false
 | |
|           }
 | |
|         }
 | |
|       }
 | |
|     }
 | |
|   }  
 | |
| } | 
![renovate[bot]](/assets/img/avatar_default.png)