pluginctl: update assets

This commit is contained in:
Felipe M 2025-07-31 12:17:06 +02:00
parent 421b4f562f
commit b10a439a29
No known key found for this signature in database
GPG key ID: 52E5D65FCF99808A
4 changed files with 18 additions and 8 deletions

View file

@ -80,4 +80,4 @@ endif
## Builds and bundles the plugin. ## Builds and bundles the plugin.
.PHONY: dist .PHONY: dist
dist: server webapp bundle dist: apply server webapp bundle

View file

@ -2,6 +2,11 @@
# Deployment and Plugin Management # Deployment and Plugin Management
# ==================================================================================== # ====================================================================================
## Applies the plugin manifest to the server and webapp codebase
.PHONY: apply
apply:
pluginctl manifest apply
## Builds and installs the plugin to a server. ## Builds and installs the plugin to a server.
.PHONY: deploy .PHONY: deploy
deploy: dist deploy: dist
@ -9,7 +14,7 @@ deploy: dist
## Builds and installs the plugin to a server, updating the webapp automatically when changed. ## Builds and installs the plugin to a server, updating the webapp automatically when changed.
.PHONY: watch .PHONY: watch
watch: server bundle watch: apply server bundle
ifeq ($(MM_DEBUG),) ifeq ($(MM_DEBUG),)
cd webapp && $(NPM) run build:watch cd webapp && $(NPM) run build:watch
else else

View file

@ -10,7 +10,7 @@ install-go-tools:
## Runs eslint and golangci-lint ## Runs eslint and golangci-lint
.PHONY: check-style .PHONY: check-style
check-style: manifest-check webapp/node_modules install-go-tools check-style: manifest-check apply webapp/node_modules install-go-tools
@echo Checking for style guide compliance @echo Checking for style guide compliance
ifneq ($(HAS_WEBAPP),) ifneq ($(HAS_WEBAPP),)
@ -29,7 +29,7 @@ endif
## Runs any lints and unit tests defined for the server and webapp, if they exist. ## Runs any lints and unit tests defined for the server and webapp, if they exist.
.PHONY: test .PHONY: test
test: webapp/node_modules install-go-tools test: apply webapp/node_modules install-go-tools
ifneq ($(HAS_SERVER),) ifneq ($(HAS_SERVER),)
$(GOBIN)/gotestsum -- -v ./... $(GOBIN)/gotestsum -- -v ./...
endif endif
@ -40,7 +40,7 @@ endif
## Runs any lints and unit tests defined for the server and webapp, if they exist, optimized ## Runs any lints and unit tests defined for the server and webapp, if they exist, optimized
## for a CI environment. ## for a CI environment.
.PHONY: test-ci .PHONY: test-ci
test-ci: webapp/node_modules install-go-tools test-ci: apply webapp/node_modules install-go-tools
ifneq ($(HAS_SERVER),) ifneq ($(HAS_SERVER),)
$(GOBIN)/gotestsum --format standard-verbose --junitfile report.xml -- ./... $(GOBIN)/gotestsum --format standard-verbose --junitfile report.xml -- ./...
endif endif
@ -50,7 +50,7 @@ endif
## Creates a coverage report for the server code. ## Creates a coverage report for the server code.
.PHONY: coverage .PHONY: coverage
coverage: webapp/node_modules coverage: apply webapp/node_modules
ifneq ($(HAS_SERVER),) ifneq ($(HAS_SERVER),)
$(GO) test $(GO_TEST_FLAGS) -coverprofile=server/coverage.txt ./server/... $(GO) test $(GO_TEST_FLAGS) -coverprofile=server/coverage.txt ./server/...
$(GO) tool cover -html=server/coverage.txt $(GO) tool cover -html=server/coverage.txt

View file

@ -1,7 +1,7 @@
{ {
"id": "com.mattermost.bridge-xmpp", "id": "com.mattermost.bridge-xmpp",
"name": "Bridge Xmpp", "name": "Mattermost Bridge for XMPP",
"description": "This plugin serves as a starting point for writing a Mattermost plugin.", "description": "This plugin provides a bridge connecting Mattermost and XMPP servers.",
"homepage_url": "https://github.com/mattermost/mattermost-plugin-bridge-xmpp", "homepage_url": "https://github.com/mattermost/mattermost-plugin-bridge-xmpp",
"support_url": "https://github.com/mattermost/mattermost-plugin-bridge-xmpp/issues", "support_url": "https://github.com/mattermost/mattermost-plugin-bridge-xmpp/issues",
"icon_path": "assets/logo.png", "icon_path": "assets/logo.png",
@ -25,5 +25,10 @@
"footer": "", "footer": "",
"settings": [], "settings": [],
"sections": null "sections": null
},
"props": {
"pluginctl": {
"version": "v0.1.1"
}
} }
} }