ソースを参照

feat(vscode): 添加 launch.json 配置文件并更新 .gitignore

xiongzhu 10 ヶ月 前
コミット
74443fa537
2 ファイル変更26 行追加1 行削除
  1. 2 1
      .gitignore
  2. 24 0
      .vscode/launch.json

+ 2 - 1
.gitignore

@@ -1,6 +1,7 @@
 node_modules
 build
 coverage
-.vscode
 .DS_STORE
 tmp
+.vscode/*
+!.vscode/launch.json

+ 24 - 0
.vscode/launch.json

@@ -0,0 +1,24 @@
+{
+    "version": "0.2.0",
+    "configurations": [
+        {
+            "type": "node",
+            "request": "launch",
+            "name": "dev",
+            "runtimeExecutable": "npm",
+            "runtimeArgs": ["run", "dev"],
+            "cwd": "${workspaceFolder}",
+            "console": "integratedTerminal",
+        },
+        {
+            "type": "node",
+            "request": "launch",
+            "name": "ocr dev",
+            "runtimeExecutable": "npm",
+            "runtimeArgs": ["run", "dev"],
+            "cwd": "${workspaceFolder}",
+            "console": "integratedTerminal",
+            "envFile": "${workspaceFolder}/.env.ocr"
+        }
+    ]
+}