setup automation to launch the generation and open a browser for debugging
authorEduardo <[email protected]>
Sat, 25 Nov 2023 01:12:34 +0000 (02:12 +0100)
committerEduardo <[email protected]>
Sat, 25 Nov 2023 01:12:34 +0000 (02:12 +0100)
.vscode/launch.json [new file with mode: 0644]
.vscode/tasks.json [new file with mode: 0644]

diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644 (file)
index 0000000..86a0084
--- /dev/null
@@ -0,0 +1,18 @@
+{
+    // Use IntelliSense to learn about possible attributes.
+    // Hover to view descriptions of existing attributes.
+    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+    "version": "0.2.0",
+    "configurations": [
+        {
+            "name": "Run page-generator",
+            "type": "firefox",
+            "request": "launch",
+            "reAttach": true,
+            "reloadOnAttach": true,
+            // "reloadOnChange": "${workspaceFolder}/public/**",
+            "file": "${workspaceFolder}/public/pages/",
+            "preLaunchTask": "page-generator"
+        }
+    ],
+}
\ No newline at end of file
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
new file mode 100644 (file)
index 0000000..4407a96
--- /dev/null
@@ -0,0 +1,12 @@
+{
+  // See https://go.microsoft.com/fwlink/?LinkId=733558
+  // for the documentation about the tasks.json format
+  "version": "2.0.0",
+  "tasks": [
+    {
+      "type": "shell",
+      "label": "page-generator",
+      "command": "cd ${workspaceFolder}/page-generator && php index.php",
+    }
+  ]
+}