mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-03 14:41:38 +08:00 
			
		
		
		
	chore(nx/desktop): start off with empty project
This commit is contained in:
		
							parent
							
								
									ca309f3b58
								
							
						
					
					
						commit
						492e953517
					
				
							
								
								
									
										5
									
								
								apps/desktop/eslint.config.mjs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								apps/desktop/eslint.config.mjs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,5 @@
 | 
			
		||||
import baseConfig from "../../eslint.config.mjs";
 | 
			
		||||
 | 
			
		||||
export default [
 | 
			
		||||
    ...baseConfig
 | 
			
		||||
];
 | 
			
		||||
							
								
								
									
										65
									
								
								apps/desktop/package.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										65
									
								
								apps/desktop/package.json
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,65 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "@triliumnext/desktop",
 | 
			
		||||
  "version": "0.0.1",
 | 
			
		||||
  "private": true,
 | 
			
		||||
  "nx": {
 | 
			
		||||
    "targets": {
 | 
			
		||||
      "build": {
 | 
			
		||||
        "executor": "@nx/esbuild:esbuild",
 | 
			
		||||
        "outputs": [
 | 
			
		||||
          "{options.outputPath}"
 | 
			
		||||
        ],
 | 
			
		||||
        "defaultConfiguration": "production",
 | 
			
		||||
        "options": {
 | 
			
		||||
          "platform": "node",
 | 
			
		||||
          "outputPath": "apps/desktop/dist",
 | 
			
		||||
          "format": [
 | 
			
		||||
            "cjs"
 | 
			
		||||
          ],
 | 
			
		||||
          "bundle": false,
 | 
			
		||||
          "main": "apps/desktop/src/main.ts",
 | 
			
		||||
          "tsConfig": "apps/desktop/tsconfig.app.json",
 | 
			
		||||
          "assets": [
 | 
			
		||||
            "apps/desktop/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": "@triliumnext/desktop:build",
 | 
			
		||||
          "runBuildTargetDependencies": false
 | 
			
		||||
        },
 | 
			
		||||
        "configurations": {
 | 
			
		||||
          "development": {
 | 
			
		||||
            "buildTarget": "@triliumnext/desktop:build:development"
 | 
			
		||||
          },
 | 
			
		||||
          "production": {
 | 
			
		||||
            "buildTarget": "@triliumnext/desktop:build:production"
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										0
									
								
								apps/desktop/src/assets/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								apps/desktop/src/assets/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										1
									
								
								apps/desktop/src/main.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								apps/desktop/src/main.ts
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
			
		||||
console.log('Hello World');
 | 
			
		||||
							
								
								
									
										19
									
								
								apps/desktop/tsconfig.app.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								apps/desktop/tsconfig.app.json
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,19 @@
 | 
			
		||||
{
 | 
			
		||||
  "extends": "../../tsconfig.base.json",
 | 
			
		||||
  "compilerOptions": {
 | 
			
		||||
    "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/desktop/tsconfig.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								apps/desktop/tsconfig.json
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
			
		||||
{
 | 
			
		||||
  "extends": "../../tsconfig.base.json",
 | 
			
		||||
  "files": [],
 | 
			
		||||
  "include": [],
 | 
			
		||||
  "references": [
 | 
			
		||||
    {
 | 
			
		||||
      "path": "./tsconfig.app.json"
 | 
			
		||||
    }
 | 
			
		||||
  ]
 | 
			
		||||
}
 | 
			
		||||
@ -20,6 +20,12 @@
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "path": "./apps/client"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "path": "./apps/desktop"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "path": "./apps/desktop-e2e"
 | 
			
		||||
    }
 | 
			
		||||
  ]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user