diff --git a/Makefile b/Makefile index 9ea8aa90a13b0..dd0f263c1fbff 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 0658262128fc6..4164727df51fb 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -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 diff --git a/develop.sh b/scripts/develop.sh similarity index 100% rename from develop.sh rename to scripts/develop.sh