Skip to content

Commit c2e8d20

Browse files
committed
Fix setup
Putting the .gitignore file inside build/dist didn't work because vite blows the directory away and recreates it. Use the toplevel .gitignore instead. This does mean that for now, build/dist won't exist on initial clone, so the go build will fail until vite is run once (generally via `task setup`) I wish that weren't the case but don't have a solution for now.
1 parent b9ae4d3 commit c2e8d20

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ bin
2121
# Other ephemeral files
2222
tmp
2323
node_modules
24-
public/dist/manifest.json
25-
public/dist/assets
24+
build/dist
2625
.task
2726
.tmp
2827
.task

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ tasks:
1414
cmds:
1515
- npm install
1616
# Do an initial build of the frontend assets to ensure that when we build the Go app, embed succeeds
17-
- npx vite
17+
- npx vite build
1818
- go install
1919
- if [[ ! $(command -v air) ]]; then go install github.com/air-verse/air@v1.52.2; fi
2020
- if [[ ! $(command -v atlas) ]]; then curl -sSf https://atlasgo.sh | sh -s -- -y; fi

build/dist/.gitignore

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

0 commit comments

Comments
 (0)