Skip to content

Commit 0948e58

Browse files
committed
use base dev container image
1 parent 4a32859 commit 0948e58

5 files changed

Lines changed: 22 additions & 12 deletions

File tree

.claude/settings.local.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"permissions": {
3+
"allow": ["WebFetch(domain:templ.guide)"],
4+
"deny": [],
5+
"ask": []
6+
}
7+
}

.devcontainer/Dockerfile

Lines changed: 0 additions & 4 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
{
22
"name": "FS App",
3-
"build": {
4-
"dockerfile": "Dockerfile",
5-
"context": ".."
3+
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
4+
"features": {
5+
"ghcr.io/devcontainers/features/go:1": {
6+
"version": "1.25.1"
7+
},
8+
"ghcr.io/devcontainers/features/node:1": {
9+
"version": "lts"
10+
}
611
},
7-
// Features to add to the dev container. More info: https://containers.dev/features.
8-
// "features": {},
912
"customizations": {
1013
"vscode": {
1114
"settings": {},
@@ -25,5 +28,9 @@
2528
"onAutoForward": "notify"
2629
}
2730
},
28-
"postCreateCommand": "npm install"
31+
"postCreateCommand": {
32+
"npm install": "npm install",
33+
"go install templ": "go install github.com/a-h/templ/cmd/templ@latest",
34+
"go install gopls": "go install golang.org/x/tools/gopls@latest"
35+
}
2936
}

internal/ui/pages/home/index.templ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ templ layout(header, body templ.Component) {
55
<div>
66
@header
77
</div>
8-
<div>
8+
<div class="p-4">
99
@body
1010
</div>
1111
</main>

internal/ui/pages/home/index_templ.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)