Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MI-3173] Setup webapp to the plugin #4

Merged
merged 16 commits into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ ifneq ($(HAS_SERVER),)
endif

## Ensures NPM dependencies are installed without having to run this all the time.
.PHONY: webapp/.npminstall
webapp/.npminstall:
ifneq ($(HAS_WEBAPP),)
cd webapp && $(NPM) install
Expand Down
4 changes: 4 additions & 0 deletions build/manifest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,15 @@ func main() {
case "has_server":
if manifest.HasServer() {
fmt.Printf("true")
} else {
Kshitij-Katiyar marked this conversation as resolved.
Show resolved Hide resolved
fmt.Printf("false")
}

case "has_webapp":
if manifest.HasWebapp() {
fmt.Printf("true")
} else {
Kshitij-Katiyar marked this conversation as resolved.
Show resolved Hide resolved
fmt.Printf("false")
}

case "apply":
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ module github.com/mattermost/mattermost-plugin-welcomebot
go 1.12

require (
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
Kshitij-Katiyar marked this conversation as resolved.
Show resolved Hide resolved
github.com/mattermost/mattermost-plugin-api v0.0.21
github.com/mattermost/mattermost-server/v6 v6.0.1
github.com/mholt/archiver/v3 v3.5.0
github.com/pkg/errors v0.9.1
golang.org/x/exp v0.0.0-20200908183739-ae8ad444f925 // indirect
)
3 changes: 3 additions & 0 deletions plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"windows-amd64": "server/dist/plugin-windows-amd64.exe"
}
},
"webapp": {
"bundle_path": "webapp/dist/main.js"
},
"settings_schema": {
"header": "Configure this plugin directly in the config.json file. Learn more [in our documentation](https://github.com/mattermost/mattermost-plugin-welcomebot/blob/master/README.md).\n\n To report an issue, make a suggestion, or submit a contribution, [check the plugin repository](https://github.com/mattermost/mattermost-plugin-welcomebot)."
}
Expand Down
Loading