完善开发环境配置
This commit is contained in:
		@@ -6,7 +6,7 @@
 | 
			
		||||
	"image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bookworm",
 | 
			
		||||
	"features": {
 | 
			
		||||
		"ghcr.io/devcontainers/features/git:1": {}
 | 
			
		||||
	}
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	// Features to add to the dev container. More info: https://containers.dev/features.
 | 
			
		||||
	// "features": {},
 | 
			
		||||
@@ -15,7 +15,7 @@
 | 
			
		||||
	// "forwardPorts": [],
 | 
			
		||||
 | 
			
		||||
	// Use 'postCreateCommand' to run commands after the container is created.
 | 
			
		||||
	// "postCreateCommand": "yarn install",
 | 
			
		||||
	"postCreateCommand": "npm install"
 | 
			
		||||
 | 
			
		||||
	// Configure tool-specific properties.
 | 
			
		||||
	// "customizations": {},
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
								
							@@ -8,7 +8,7 @@
 | 
			
		||||
            "request": "launch",
 | 
			
		||||
            "args": ["--extensionDevelopmentPath=${workspaceRoot}"],
 | 
			
		||||
            "sourceMaps": true,
 | 
			
		||||
            "preLaunchTask": "npm: compile",
 | 
			
		||||
            "preLaunchTask": "npm: build",
 | 
			
		||||
            "outFiles": ["${workspaceFolder}/dist/**/*.js"],
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										27
									
								
								.vscode/tasks.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										27
									
								
								.vscode/tasks.json
									
									
									
									
										vendored
									
									
								
							@@ -11,25 +11,24 @@
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"type": "npm",
 | 
			
		||||
			"script": "format",
 | 
			
		||||
			"script": "package",
 | 
			
		||||
			"problemMatcher": [],
 | 
			
		||||
			"label": "npm: format",
 | 
			
		||||
			"detail": "prettier --single-quote --print-width 88 --write \"src/**/*.js\""
 | 
			
		||||
			"label": "npm: package",
 | 
			
		||||
			"detail": "webpack --mode production && vsce package"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"type": "npm",
 | 
			
		||||
			"script": "watch",
 | 
			
		||||
			"problemMatcher": "$ts-webpack-watch",
 | 
			
		||||
			"isBackground": true,
 | 
			
		||||
			"presentation": {
 | 
			
		||||
				"reveal": "never",
 | 
			
		||||
				"group": "watchers"
 | 
			
		||||
			},
 | 
			
		||||
			"group": {
 | 
			
		||||
				"kind": "build",
 | 
			
		||||
				"isDefault": true
 | 
			
		||||
			}
 | 
			
		||||
			"problemMatcher": [],
 | 
			
		||||
			"label": "npm: watch",
 | 
			
		||||
			"detail": "webpack --mode production --watch"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"type": "npm",
 | 
			
		||||
			"script": "format",
 | 
			
		||||
			"problemMatcher": [],
 | 
			
		||||
			"label": "npm: format",
 | 
			
		||||
			"detail": "eslint src --ext ts"
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
	]
 | 
			
		||||
}
 | 
			
		||||
@@ -95,11 +95,11 @@
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "compile": "webpack --mode production",
 | 
			
		||||
    "vscode:package": "webpack --mode production && vsce package",
 | 
			
		||||
    "vscode:publish": "vsce publish",
 | 
			
		||||
    "build": "webpack --mode production",
 | 
			
		||||
    "package": "webpack --mode production && vsce package",
 | 
			
		||||
    "publish": "vsce publish",
 | 
			
		||||
    "watch": "webpack --mode production --watch",
 | 
			
		||||
    "lint": "eslint src --ext ts"
 | 
			
		||||
    "format": "eslint src --ext ts"
 | 
			
		||||
  },
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
    "fs-plus": "~3.1.1",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user