mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	build: output into "build" folder again → "dist" will be used for the final output in archive form
this will allow for cleaner separation -> build for the output from the build stage (i.e. TS/Webpack + asset copying) and dist for the archive format of the build folder
This commit is contained in:
		
				
					committed by
					
						 Panagiotis Papadopoulos
						Panagiotis Papadopoulos
					
				
			
			
				
	
			
			
			
						parent
						
							064799e8cb
						
					
				
				
					commit
					607f9096aa
				
			| @@ -10,8 +10,8 @@ COPY . . | ||||
| RUN npm ci && \ | ||||
|     npm run build:prepare-dist && \ | ||||
|     npm cache clean --force && \ | ||||
|     rm -rf dist/node_modules && \ | ||||
|     mv dist/* \ | ||||
|     rm -rf build/node_modules && \ | ||||
|     mv build/* \ | ||||
|       start-docker.sh \ | ||||
|       /usr/src/app/ && \ | ||||
|     rm -rf \ | ||||
|   | ||||
| @@ -10,8 +10,8 @@ COPY . . | ||||
| RUN npm ci && \ | ||||
|     npm run build:prepare-dist && \ | ||||
|     npm cache clean --force && \ | ||||
|     rm -rf dist/node_modules && \ | ||||
|     mv dist/* \ | ||||
|     rm -rf build/node_modules && \ | ||||
|     mv build/* \ | ||||
|       start-docker.sh \ | ||||
|       /usr/src/app/ && \ | ||||
|     rm -rf \ | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| import fs from "fs-extra"; | ||||
| import path from "path"; | ||||
|  | ||||
| const DEST_DIR = "./dist"; | ||||
| const DEST_DIR = "./build"; | ||||
|  | ||||
| const VERBOSE = process.env.VERBOSE; | ||||
|  | ||||
|   | ||||
| @@ -3,7 +3,7 @@ | ||||
|     "module": "NodeNext", | ||||
|     "declaration": false, | ||||
|     "sourceMap": true, | ||||
|     "outDir": "./dist", | ||||
|     "outDir": "./build", | ||||
|     "strict": true, | ||||
|     "noImplicitAny": true, | ||||
|     "resolveJsonModule": true, | ||||
|   | ||||
| @@ -3,7 +3,7 @@ | ||||
|     "module": "NodeNext", | ||||
|     "declaration": false, | ||||
|     "sourceMap": true, | ||||
|     "outDir": "./dist", | ||||
|     "outDir": "./build", | ||||
|     "strict": true, | ||||
|     "noImplicitAny": true, | ||||
|     "resolveJsonModule": true, | ||||
|   | ||||
| @@ -3,7 +3,7 @@ | ||||
|     "module": "NodeNext", | ||||
|     "declaration": false, | ||||
|     "sourceMap": true, | ||||
|     "outDir": "./dist", | ||||
|     "outDir": "./build", | ||||
|     "strict": true, | ||||
|     "noImplicitAny": true, | ||||
|     "resolveJsonModule": true, | ||||
|   | ||||
| @@ -19,7 +19,7 @@ const config: Configuration = { | ||||
|     }, | ||||
|     output: { | ||||
|         publicPath: `${assetPath}/app-dist/`, | ||||
|         path: path.resolve(rootDir, "dist/src/public/app-dist"), | ||||
|         path: path.resolve(rootDir, "build/src/public/app-dist"), | ||||
|         filename: "[name].js" | ||||
|     }, | ||||
|     plugins: [ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user