aboutsummaryrefslogtreecommitdiff
path: root/.devcontainer/component/devcontainer.json
diff options
context:
space:
mode:
Diffstat (limited to '.devcontainer/component/devcontainer.json')
-rw-r--r--.devcontainer/component/devcontainer.json21
1 files changed, 21 insertions, 0 deletions
diff --git a/.devcontainer/component/devcontainer.json b/.devcontainer/component/devcontainer.json
new file mode 100644
index 000000000..c2d3e50c3
--- /dev/null
+++ b/.devcontainer/component/devcontainer.json
@@ -0,0 +1,21 @@
+{
+ "name": "Component Template",
+ "build": {
+ "dockerfile": "../examples.Dockerfile"
+ },
+
+ "workspaceFolder": "/workspaces/astro/examples/component",
+
+ "postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
+
+ "waitFor": "postCreateCommand",
+
+ "customizations": {
+ "codespaces": {
+ "openFiles": ["src/MyComponent.astro"]
+ },
+ "vscode": {
+ "extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
+ }
+ }
+}