chore: add make dev (#1527)

This commit is contained in:
Garrett Delfosse 2022-05-17 13:12:14 -05:00 committed by GitHub
parent 841b792e8e
commit 495c87b6c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -20,6 +20,10 @@ coderd/database/dump.sql: $(wildcard coderd/database/migrations/*.sql)
coderd/database/querier.go: coderd/database/dump.sql $(wildcard coderd/database/queries/*.sql)
coderd/database/generate.sh
dev: build
./scripts/develop.sh
.PHONY: dev
dist/artifacts.json: site/out/index.html $(shell find . -not -path './vendor/*' -type f -name '*.go') go.mod go.sum
goreleaser release --snapshot --rm-dist --skip-sign

View File

@ -9,10 +9,10 @@ Coder requires Go 1.18+, Node 14+, and GNU Make.
Use the following `make` commands and scripts in development:
- `make dev` runs the frontend and backend development server
- `make build` compiles binaries and release packages
- `make install` installs binaries to `$GOPATH/bin`
- `make test`
- `./develop.sh` hot reloads for front-end development
## Styling