Chore: Makefile / Magefile task to build plugins (#76763)

This commit is contained in:
Andres Martinez Gotor
2023-10-23 10:44:38 +02:00
committed by GitHub
parent 685b494e05
commit 580a4cac58
3 changed files with 136 additions and 0 deletions

View File

@@ -141,6 +141,22 @@ build-js: ## Build frontend assets.
yarn run build
yarn run plugins:build-bundled
build-plugins-go: ## Build decoupled plugins
@echo "build plugins"
@cd pkg/tsdb; \
mage -v
PLUGIN_ID ?=
build-plugin-go: ## Build decoupled plugins
@echo "build plugin $(PLUGIN_ID)"
@cd pkg/tsdb; \
if [ -z "$(PLUGIN_ID)" ]; then \
echo "PLUGIN_ID is not set"; \
exit 1; \
fi; \
mage -v buildplugin $(PLUGIN_ID)
build: build-go build-js ## Build backend and frontend.
run: $(BRA) ## Build and run web server on filesystem changes.