[MM-33506] Use embed package to include plugin manifest (#145)

This commit is contained in:
Ben Schumacher 2021-05-18 15:51:24 +02:00 committed by GitHub
parent f5cae51a20
commit ca9ee3c17c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 465 additions and 261 deletions

View file

@ -20,6 +20,7 @@ default: all
# Verify environment, and define PLUGIN_ID, PLUGIN_VERSION, HAS_SERVER and HAS_WEBAPP as needed.
include build/setup.mk
include build/legacy.mk
BUNDLE_NAME ?= $(PLUGIN_ID)-$(PLUGIN_VERSION).tar.gz
@ -32,11 +33,6 @@ endif
.PHONY: all
all: check-style test dist
## Propagates plugin manifest information into the server/ and webapp/ folders.
.PHONY: apply
apply:
./build/bin/manifest apply
## Runs eslint and golangci-lint
.PHONY: check-style
check-style: webapp/node_modules
@ -119,7 +115,7 @@ endif
## Builds and bundles the plugin.
.PHONY: dist
dist: apply server webapp bundle
dist: server webapp bundle
## Builds and installs the plugin to a server.
.PHONY: deploy
@ -128,7 +124,7 @@ deploy: dist
## Builds and installs the plugin to a server, updating the webapp automatically when changed.
.PHONY: watch
watch: apply server bundle
watch: server bundle
ifeq ($(MM_DEBUG),)
cd webapp && $(NPM) run build:watch
else