Commit graph

25 commits

Author SHA1 Message Date
Jesse Hallam
a49d6f6dd4
Various tooling improvements from other plugins (#96) 2020-06-22 11:21:37 -04:00
Ben Schumacher
f5e50c1e17
Integrate GolangCI-Lint (#90)
* Use plugin orb for ci

* Add golangci-lint config and fix issues

* Simplify circleci config

* Drop unparam

* Drop maligned

* Ignore varcheck in server/manifest.go
2020-04-02 15:01:00 -03:00
Gabe Jackson
6eea8c4577
Cleanup deploy error message (#88)
This removes a double print of the API response error message.
2020-03-13 09:10:53 -07:00
Jesse Hallam
282a8cf227
Allow make deploy using token (#79)
* Allow make deploy using token

Introduce support for `MM_ADMIN_TOKEN` as an alternative to defining `MM_ADMIN_USERNAME` and `MM_ADMIN_PASSWORD.

* reverse README.md authentication schemes

* wrap errors

* Update build/deploy/main.go

Co-Authored-By: Ben Schumacher <ben.schumacher@mattermost.com>

* fix linting

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2020-02-08 10:14:26 -05:00
Ben Schumacher
88991946af
Fix invalid import in manifest.go (#77) 2019-12-23 08:21:50 +01:00
Ben Schumacher
1c3014f906
Bump Mattermost to 5.18 (#76) 2019-12-22 16:23:55 +01:00
İlker Göktuğ Öztürk
8cf303c943 build/manifest: print whole manifest variable as it is (#73)
while generating manifest files for both JS and Go sources.

fixes #72.
2019-12-20 23:01:40 +01:00
Jesse Hallam
8e090661e8 make deploy reliable using Go (#74) 2019-11-20 23:16:23 +01:00
Mario de Frutos Dieguez
b7165a0f5f Mark manifest.[go|js] as a generated file (#57)
manifest.[go|js] files are autogenerated so we dont need to
show diffs, cope with conflicts in merge operations or show the
diff in github.
2019-08-14 23:40:52 +02:00
Jesse Hallam
0f24f27f20
Update custom.mk
Fix typo.
2019-07-09 14:42:46 -03:00
Hanzei
5763d2f9f3 Add support for custom makefile (#45)
* Add support for custom makefile

* Add documention
2019-06-24 19:50:25 -04:00
Hanzei
43af4d9cfe
Refactoring (#43)
* Cleanup .gitignore

* Document minimum server version

* Become golint compliant

* Use pre defined http method

* Update dependencies

* Add i18n-extract target

* Add golint target

* Run check-style against all go files

Co-Authored-By: Jesse Hallam <jesse.hallam@gmail.com>
2019-06-22 16:15:48 +02:00
Hanzei
fe3553d999 Go modules (#22)
* Move to go modules

* Move go.mod in root directory

* Update Readme

* Remove golang.org/x/tools from go.mod

* Remove go list from targets

* Set go version to 1.12

* Update Makefile

Co-Authored-By: hanzei <16541325+hanzei@users.noreply.github.com>

* Update dependencies

* Fix build
2019-04-10 12:42:33 -07:00
happygaijin
0e863452cc MM-14575: Automatically serve static files for plugins (#33)
* MM-14575: Automatically serve static files for plugins
* Added sample public file
* Added HAS_PUBLIC to Makefile to test for public folder
* Added "static_files" config setting

* MM-14575: Removing static_files from plugin.json

* MM14575: Moving public folder to bundle root

* MM14575:Moving public directory to root
2019-04-02 13:22:01 -07:00
Hanzei
415e8b5f72
Update dependencies for 5.6 (#24) 2018-12-17 08:28:01 +01:00
Hanzei
e30e2613a4
Update Mattermost to v5.4 2018-10-17 07:19:22 +02:00
Hanzei
d918262365
Update server dependencies 2018-09-23 08:22:59 +02:00
Jesse Hallam
15a3d3c433
fix index.js import of plugin id 2018-09-20 14:21:10 -04:00
Jesse Hallam
5b2980d1ac
tweak plugin id/version injection
* define BUNDLE_NAME after including build/setup.mk (just for clarity, not correctness)
* separate plugin id from version with dash in bundle name to match Mattermost package
* fix various js/go idioms (some pre-existing!)
* fix error message
2018-09-20 11:56:40 -04:00
Hanzei
ed143d89d4
Include version into bundle name 2018-09-18 08:19:42 +02:00
Hanzei
8cb9ff92df
Extract plugin version from manifest 2018-09-18 08:12:48 +02:00
Jesse Hallam
2de3471aa2
more Makefile improvements
* warn upfront if go/dep/npm not available
* try to find dep in $GOPATH/bin if not installed globally
* only override variables if not externally defined, allowing manual override from command line
* split up Makefile into a buid/setup.mk for simplicity

I didn't actually find anything that made this Makefile not-linux
specific -- tested on Debian with the standard make installed.
2018-07-31 16:15:55 -04:00
Jesse Hallam
8788b41ab2
s/vgo/dep/ 2018-07-27 14:32:36 -04:00
Jesse Hallam
6d10b915ca
tweak plugin_id.js generation 2018-07-24 16:06:31 -04:00
Jesse Hallam
189f92c54b
initial commit 2018-07-23 13:43:22 -04:00