mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Build: adds make target run-frontend (#20227)
Adds a target that will run yarn install if needed and then build and start watching for changes.
This commit is contained in:
parent
9f81fcdd2f
commit
2850419470
5
Makefile
5
Makefile
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
-include local/Makefile
|
-include local/Makefile
|
||||||
|
|
||||||
.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
|
.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
|
||||||
|
|
||||||
GO = GO111MODULE=on go
|
GO = GO111MODULE=on go
|
||||||
GO_FILES ?= ./pkg/...
|
GO_FILES ?= ./pkg/...
|
||||||
@ -52,6 +52,9 @@ scripts/go/bin/bra: scripts/go/go.mod
|
|||||||
run: scripts/go/bin/bra ## Build and run web server on filesystem changes.
|
run: scripts/go/bin/bra ## Build and run web server on filesystem changes.
|
||||||
@GO111MODULE=on scripts/go/bin/bra run
|
@GO111MODULE=on scripts/go/bin/bra run
|
||||||
|
|
||||||
|
run-frontend: deps-js ## Fetch js dependencies and watch frontend for rebuild
|
||||||
|
yarn start
|
||||||
|
|
||||||
##@ Testing
|
##@ Testing
|
||||||
|
|
||||||
test-go: ## Run tests for backend.
|
test-go: ## Run tests for backend.
|
||||||
|
Loading…
Reference in New Issue
Block a user