Adds Dev Container configuration (#1393)
Adds necessary settings, extensions, and ports to access.
This commit is contained in:
		
							parent
							
								
									08d977b8cd
								
							
						
					
					
						commit
						8827917b68
					
				
							
								
								
									
										34
									
								
								.devcontainer/devcontainer.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								.devcontainer/devcontainer.json
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,34 @@ | |||||||
|  | { | ||||||
|  |     "name": "IT-Tools Dev Container", | ||||||
|  |     "image": "mcr.microsoft.com/devcontainers/javascript-node", | ||||||
|  |     "customizations": { | ||||||
|  |         "vscode": { | ||||||
|  |             "extensions": [ | ||||||
|  |                 "Vue.volar", | ||||||
|  |                 "dbaeumer.vscode-eslint", | ||||||
|  |                 "Lokalise.i18n-ally", | ||||||
|  |                 "eamodio.gitlens" | ||||||
|  |             ], | ||||||
|  |             "settings": { | ||||||
|  |                 "editor.formatOnSave": false, | ||||||
|  |                 "editor.codeActionsOnSave": { | ||||||
|  |                     "source.fixAll.eslint": true | ||||||
|  |                 }, | ||||||
|  |                 "i18n-ally.localesPaths": [ | ||||||
|  |                     "locales", | ||||||
|  |                     "src/tools/*/locales" | ||||||
|  |                 ], | ||||||
|  |                 "i18n-ally.keystyle": "nested" | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  |     }, | ||||||
|  |     "postCreateCommand": "sudo cp .devcontainer/welcome.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt", | ||||||
|  |     "postStartCommand": "npm install -g pnpm && pnpm install", | ||||||
|  |     "forwardPorts": [5173], | ||||||
|  |     "portsAttributes": { | ||||||
|  |         "5173": { | ||||||
|  |             "label": "Vite App - IT-Tools", | ||||||
|  |             "onAutoForward": "notify" | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  | } | ||||||
							
								
								
									
										7
									
								
								.devcontainer/welcome.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								.devcontainer/welcome.txt
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,7 @@ | |||||||
|  | Welcome to the IT-Tools Dev Container! 💻 | ||||||
|  | 
 | ||||||
|  | To get started, enter `pnpm dev` on the terminal to run the app locally. | ||||||
|  | 
 | ||||||
|  | Head over to the ./README.md file to know more. | ||||||
|  | 
 | ||||||
|  | Happy coding! :) | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user