瀏覽代碼

[vscode] add make clean/libs/haxelib/all tasks

Jens Fischer 6 年之前
父節點
當前提交
c0a55269f9
共有 2 個文件被更改,包括 28 次插入2 次删除
  1. 2 1
      .vscode/settings.json
  2. 26 1
      .vscode/tasks.json

+ 2 - 1
.vscode/settings.json

@@ -11,5 +11,6 @@
 		"**/_build": true
 		"**/_build": true
 	},
 	},
 	"reason.server.languages": ["ocaml"],
 	"reason.server.languages": ["ocaml"],
-	"haxe.diagnosticsPathFilter": "${workspaceRoot}/std"
+	"haxe.diagnosticsPathFilter": "${workspaceRoot}/std",
+	"npm.autoDetect": "off"
 }
 }

+ 26 - 1
.vscode/tasks.json

@@ -2,13 +2,38 @@
     "version": "2.0.0",
     "version": "2.0.0",
 	"tasks": [
 	"tasks": [
 		{
 		{
-			"label": "Compile",
+			"label": "make: haxe",
 			"type": "shell",
 			"type": "shell",
 			"command": "make ADD_REVISION=1 -f Makefile.win -s -j haxe",
 			"command": "make ADD_REVISION=1 -f Makefile.win -s -j haxe",
+			"problemMatcher": [],
 			"group": {
 			"group": {
 				"kind": "build",
 				"kind": "build",
 				"isDefault": true
 				"isDefault": true
 			}
 			}
+		},
+		{
+			"label": "make: libs",
+			"type": "shell",
+			"command": "make -f Makefile.win -s -j libs",
+			"problemMatcher": []
+		},
+		{
+			"label": "make: haxelib",
+			"type": "shell",
+			"command": "make -f Makefile.win -s haxelib",
+			"problemMatcher": ["$haxe", "$haxe-absolute"]
+		},
+		{
+			"label": "make: all",
+			"type": "shell",
+			"command": "make -f Makefile.win -s -j libs && make ADD_REVISION=1 -f Makefile.win -s -j haxe && make -f Makefile.win -s haxelib",
+			"problemMatcher": ["$haxe", "$haxe-absolute"]
+		},
+		{
+			"label": "make: clean",
+			"type": "shell",
+			"command": "make clean",
+			"problemMatcher": []
 		}
 		}
 	]
 	]
 }
 }