mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	chore(nx/dump-db): integrate into monorepo
This commit is contained in:
		| @@ -1,31 +0,0 @@ | |||||||
| { |  | ||||||
|   "name": "dump-db", |  | ||||||
|   "version": "1.0.0", |  | ||||||
|   "description": "Standalone tool to dump contents of Trilium document.db file into a directory tree of notes", |  | ||||||
|   "main": "dump-db.ts", |  | ||||||
|   "scripts": { |  | ||||||
|     "test": "echo \"Error: no test specified\" && exit 1" |  | ||||||
|   }, |  | ||||||
|   "repository": { |  | ||||||
|     "type": "git", |  | ||||||
|     "url": "git+https://github.com/TriliumNext/Notes.git" |  | ||||||
|   }, |  | ||||||
|   "author": "TriliumNext", |  | ||||||
|   "license": "ISC", |  | ||||||
|   "bugs": { |  | ||||||
|     "url": "https://github.com/TriliumNext/Notes/issues" |  | ||||||
|   }, |  | ||||||
|   "homepage": "https://github.com/TriliumNext/Notes/blob/master/dump-db/README.md", |  | ||||||
|   "dependencies": { |  | ||||||
|     "better-sqlite3": "^11.1.2", |  | ||||||
|     "mime-types": "^3.0.0", |  | ||||||
|     "sanitize-filename": "^1.6.3", |  | ||||||
|     "tsx": "^4.19.3", |  | ||||||
|     "yargs": "^17.3.1" |  | ||||||
|   }, |  | ||||||
|   "devDependencies": { |  | ||||||
|     "@types/better-sqlite3": "^7.6.11", |  | ||||||
|     "@types/mime-types": "^2.1.4", |  | ||||||
|     "@types/yargs": "^17.0.33" |  | ||||||
|   } |  | ||||||
| } |  | ||||||
| @@ -1,10 +0,0 @@ | |||||||
| { |  | ||||||
|   "compilerOptions": { |  | ||||||
|     "module": "ESNext", |  | ||||||
|     "moduleResolution": "node", |  | ||||||
|     "esModuleInterop": true, |  | ||||||
|     "allowSyntheticDefaultImports": true, |  | ||||||
|     "target": "ES6", |  | ||||||
|     "strict": true |  | ||||||
|   } |  | ||||||
| } |  | ||||||
							
								
								
									
										5
									
								
								apps/dump-db/eslint.config.mjs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								apps/dump-db/eslint.config.mjs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | |||||||
|  | import baseConfig from "../../eslint.config.mjs"; | ||||||
|  |  | ||||||
|  | export default [ | ||||||
|  |     ...baseConfig | ||||||
|  | ]; | ||||||
							
								
								
									
										79
									
								
								apps/dump-db/package.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										79
									
								
								apps/dump-db/package.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,79 @@ | |||||||
|  | { | ||||||
|  |   "name": "@triliumnext/dump-db", | ||||||
|  |   "version": "1.0.0", | ||||||
|  |   "description": "Standalone tool to dump contents of Trilium document.db file into a directory tree of notes", | ||||||
|  |   "private": true, | ||||||
|  |   "dependencies": { | ||||||
|  |     "better-sqlite3": "^11.1.2", | ||||||
|  |     "mime-types": "^3.0.0", | ||||||
|  |     "sanitize-filename": "^1.6.3", | ||||||
|  |     "tsx": "^4.19.3", | ||||||
|  |     "yargs": "^17.3.1" | ||||||
|  |   }, | ||||||
|  |   "devDependencies": { | ||||||
|  |     "@types/better-sqlite3": "^7.6.11", | ||||||
|  |     "@types/mime-types": "^2.1.4", | ||||||
|  |     "@types/yargs": "^17.0.33" | ||||||
|  |   }, | ||||||
|  |   "nx": { | ||||||
|  |     "name": "dump-db", | ||||||
|  |     "targets": { | ||||||
|  |       "build": { | ||||||
|  |         "executor": "@nx/esbuild:esbuild", | ||||||
|  |         "outputs": [ | ||||||
|  |           "{options.outputPath}" | ||||||
|  |         ], | ||||||
|  |         "defaultConfiguration": "production", | ||||||
|  |         "options": { | ||||||
|  |           "platform": "node", | ||||||
|  |           "outputPath": "apps/dump-db/dist", | ||||||
|  |           "format": [ | ||||||
|  |             "cjs" | ||||||
|  |           ], | ||||||
|  |           "bundle": false, | ||||||
|  |           "main": "apps/dump-db/src/main.ts", | ||||||
|  |           "tsConfig": "apps/dump-db/tsconfig.app.json", | ||||||
|  |           "assets": [ | ||||||
|  |             "apps/dump-db/src/assets" | ||||||
|  |           ], | ||||||
|  |           "esbuildOptions": { | ||||||
|  |             "sourcemap": true, | ||||||
|  |             "outExtension": { | ||||||
|  |               ".js": ".js" | ||||||
|  |             } | ||||||
|  |           } | ||||||
|  |         }, | ||||||
|  |         "configurations": { | ||||||
|  |           "development": {}, | ||||||
|  |           "production": { | ||||||
|  |             "esbuildOptions": { | ||||||
|  |               "sourcemap": false, | ||||||
|  |               "outExtension": { | ||||||
|  |                 ".js": ".js" | ||||||
|  |               } | ||||||
|  |             } | ||||||
|  |           } | ||||||
|  |         } | ||||||
|  |       }, | ||||||
|  |       "serve": { | ||||||
|  |         "executor": "@nx/js:node", | ||||||
|  |         "defaultConfiguration": "development", | ||||||
|  |         "dependsOn": [ | ||||||
|  |           "build" | ||||||
|  |         ], | ||||||
|  |         "options": { | ||||||
|  |           "buildTarget": "dump-db:build", | ||||||
|  |           "runBuildTargetDependencies": false | ||||||
|  |         }, | ||||||
|  |         "configurations": { | ||||||
|  |           "development": { | ||||||
|  |             "buildTarget": "dump-db:build:development" | ||||||
|  |           }, | ||||||
|  |           "production": { | ||||||
|  |             "buildTarget": "dump-db:build:production" | ||||||
|  |           } | ||||||
|  |         } | ||||||
|  |       } | ||||||
|  |     } | ||||||
|  |   } | ||||||
|  | } | ||||||
							
								
								
									
										0
									
								
								apps/dump-db/src/assets/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								apps/dump-db/src/assets/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										25
									
								
								apps/dump-db/tsconfig.app.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								apps/dump-db/tsconfig.app.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | |||||||
|  | { | ||||||
|  |   "extends": "../../tsconfig.base.json", | ||||||
|  |   "compilerOptions": { | ||||||
|  |     "module": "ESNext", | ||||||
|  |     "moduleResolution": "bundler", | ||||||
|  |     "esModuleInterop": true, | ||||||
|  |     "allowSyntheticDefaultImports": true, | ||||||
|  |     "target": "ES6", | ||||||
|  |     "strict": true, | ||||||
|  |     "outDir": "dist", | ||||||
|  |     "types": [ | ||||||
|  |       "node" | ||||||
|  |     ], | ||||||
|  |     "rootDir": "src", | ||||||
|  |     "tsBuildInfoFile": "dist/tsconfig.app.tsbuildinfo" | ||||||
|  |   }, | ||||||
|  |   "include": [ | ||||||
|  |     "src/**/*.ts" | ||||||
|  |   ], | ||||||
|  |   "exclude": [ | ||||||
|  |     "eslint.config.js", | ||||||
|  |     "eslint.config.cjs", | ||||||
|  |     "eslint.config.mjs" | ||||||
|  |   ] | ||||||
|  | } | ||||||
							
								
								
									
										10
									
								
								apps/dump-db/tsconfig.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								apps/dump-db/tsconfig.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | |||||||
|  | { | ||||||
|  |   "extends": "../../tsconfig.base.json", | ||||||
|  |   "files": [], | ||||||
|  |   "include": [], | ||||||
|  |   "references": [ | ||||||
|  |     { | ||||||
|  |       "path": "./tsconfig.app.json" | ||||||
|  |     } | ||||||
|  |   ] | ||||||
|  | } | ||||||
| @@ -23,6 +23,9 @@ | |||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "path": "./apps/desktop" |       "path": "./apps/desktop" | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |       "path": "./apps/dump-db" | ||||||
|     } |     } | ||||||
|   ] |   ] | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user