Skip to content

Commit

Permalink
docs: update install-snapshot script to use go install (#350)
Browse files Browse the repository at this point in the history
Co-authored-by: Adrian Hesketh <adrianhesketh@hushmail.com>
Co-authored-by: Adrian Hesketh <a-h@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 22, 2023
1 parent 8484597 commit 27b594c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.500
0.2.501
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,18 @@ go build

### install-snapshot

Build and install to ~/bin
Build and install current version.

```sh
rm cmd/templ/lspcmd/*.txt || true
# Remove templ from the non-standard ~/bin/templ path
# that this command previously used.
rm -f ~/bin/templ
# Clear LSP logs.
rm -f cmd/templ/lspcmd/*.txt
# Update version.
go run ./get-version > .version
cd cmd/templ && go build -o ~/bin/templ
# Install to $GOPATH/bin or $HOME/go/bin
cd cmd/templ && go install
```

### build-snapshot
Expand Down

0 comments on commit 27b594c

Please sign in to comment.