Commit graph

7 commits

Author SHA1 Message Date
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
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