Skip to content

Commit 2850419

Browse files
authored
Build: adds make target run-frontend (grafana#20227)
Adds a target that will run yarn install if needed and then build and start watching for changes.
1 parent 9f81fcd commit 2850419

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
-include local/Makefile
66

7-
.PHONY: all deps-go deps-js deps build-go build-server build-cli build-js build build-docker-dev build-docker-full lint-go gosec revive golangci-lint go-vet test-go test-js test run clean devenv devenv-down revive-alerting help
7+
.PHONY: all deps-go deps-js deps build-go build-server build-cli build-js build build-docker-dev build-docker-full lint-go gosec revive golangci-lint go-vet test-go test-js test run run-frontend clean devenv devenv-down revive-alerting help
88

99
GO = GO111MODULE=on go
1010
GO_FILES ?= ./pkg/...
@@ -52,6 +52,9 @@ scripts/go/bin/bra: scripts/go/go.mod
5252
run: scripts/go/bin/bra ## Build and run web server on filesystem changes.
5353
@GO111MODULE=on scripts/go/bin/bra run
5454

55+
run-frontend: deps-js ## Fetch js dependencies and watch frontend for rebuild
56+
yarn start
57+
5558
##@ Testing
5659

5760
test-go: ## Run tests for backend.

0 commit comments

Comments
 (0)