Jesse Hallam
7399e616d6
avoid assuming $GOPATH is set ( #55 )
...
Assign `$GOPATH` if not set, and use same to get to `$GOPATH/bin` instead of assuming `$PATH` contains same.
2019-07-11 17:21:51 -03:00
Jesse Hallam
0f24f27f20
Update custom.mk
...
Fix typo.
2019-07-09 14:42:46 -03:00
dependabot[bot]
5265633fe0
Bump js-yaml from 3.12.0 to 3.13.1 in /webapp ( #48 )
...
Bumps [js-yaml](https://github.com/nodeca/js-yaml ) from 3.12.0 to 3.13.1.
- [Release notes](https://github.com/nodeca/js-yaml/releases )
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nodeca/js-yaml/compare/3.12.0...3.13.1 )
Signed-off-by: dependabot[bot] <support@github.com>
2019-06-28 10:31:33 -07:00
dependabot[bot]
9169c02a3f
Bump lodash from 4.17.10 to 4.17.11 in /webapp ( #49 )
2019-06-26 04:52:14 +00:00
Hanzei
43220fefbf
Make go flags customisable ( #46 )
2019-06-25 21:36:33 +02:00
Michael Kochell
1a5f1bc2d2
[MM-14189] Update references to "mattermost-plugin-sample" to be… ( #47 )
...
Repo name changed
2019-06-24 22:02:25 -04: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
Jesse Hallam
2f14f54b59
Clarify Go modules requirements. ( #44 )
...
For anyone new to Go modules, it's worth adding some clarity on how to use this project in the event it remains located in the `$GOPATH`.
2019-06-20 14:36:32 +02:00
Christopher Speller
450dec550d
Advertising template ( #41 )
2019-06-06 15:47:52 -07:00
Hanzei
a79b47bf5b
Fix make coverage ( #40 )
2019-05-28 22:05:07 -05:00
Jason Blais
99a136b8b4
Add a link to plugin docs in sample plugin README ( #38 )
2019-04-30 15:11:10 +02:00
scott lee davis
0acb31f8a7
changed single expression plugin upload to validate responses ( #36 )
...
* changed single expression plugin upload to individual calls checking response. fixes problems with no uploads on Ubuntu 16.04
* Updated error message as requested by @levb on #discussion_r275448965
* removed double PLUGIN_VERSION ref
* added --post301 --location to curl invocation in ./build/bin/manifest apply
mkdir -p server/dist;
cd server && env GOOS=linux GOARCH=amd64 /usr/local/go/bin/go build -o dist/plugin-linux-amd64;
cd server && env GOOS=darwin GOARCH=amd64 /usr/local/go/bin/go build -o dist/plugin-darwin-amd64;
cd server && env GOOS=windows GOARCH=amd64 /usr/local/go/bin/go build -o dist/plugin-windows-amd64.exe;
cd webapp && /usr/local/bin/npm run build;
> webapp@0.0.1 build /home/skawtus/workspace/mattermost-plugin-sample/webapp
> webpack --mode=production
Hash: f6fcda45461a2f57b51b
Version: webpack 4.16.1
Time: 509ms
Built at: 2019-04-16 09:56:33
Asset Size Chunks Chunk Names
main.js 1.61 KiB 0 [emitted] main
[0] multi ./src/index.js 28 bytes {0} [built]
[1] ./src/index.js 1.28 KiB {0} [built]
[2] ./src/manifest.js 174 bytes {0} [built]
rm -rf dist/
mkdir -p dist/com.mattermost.sample-plugin
cp plugin.json dist/com.mattermost.sample-plugin/
cp -r assets dist/com.mattermost.sample-plugin/
cp -r public/ dist/com.mattermost.sample-plugin/
mkdir -p dist/com.mattermost.sample-plugin/server/dist;
cp -r server/dist/* dist/com.mattermost.sample-plugin/server/dist/;
mkdir -p dist/com.mattermost.sample-plugin/webapp/dist;
cp -r webapp/dist/* dist/com.mattermost.sample-plugin/webapp/dist/;
cd dist && tar -cvzf com.mattermost.sample-plugin-0.1.0.tar.gz com.mattermost.sample-plugin
com.mattermost.sample-plugin/
com.mattermost.sample-plugin/webapp/
com.mattermost.sample-plugin/webapp/dist/
com.mattermost.sample-plugin/webapp/dist/main.js
com.mattermost.sample-plugin/assets/
com.mattermost.sample-plugin/assets/.gitkeep
com.mattermost.sample-plugin/plugin.json
com.mattermost.sample-plugin/server/
com.mattermost.sample-plugin/server/dist/
com.mattermost.sample-plugin/server/dist/plugin-darwin-amd64
com.mattermost.sample-plugin/server/dist/plugin-windows-amd64.exe
com.mattermost.sample-plugin/server/dist/plugin-linux-amd64
com.mattermost.sample-plugin/public/
com.mattermost.sample-plugin/public/hello.html
plugin built at: dist/com.mattermost.sample-plugin-0.1.0.tar.gz
Installing plugin via API
OK.
* reverted to original request sequence, combine with post301 & location flags to curl
2019-04-22 11:41:09 -04: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
Hanzei
05dd2de750
Start with version 0.1.0 ( #35 )
2019-04-04 07:44:40 -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
63f5322e4e
Add .editorconfig ( #34 )
2019-03-25 10:31:26 -04:00
Hanzei
cd8afb141d
Allow plugins to include assets in the bundle ( #28 )
2019-03-18 20:09:23 +01:00
Hanzei
81c67a92f3
Overwrite plugin when deploying ( #32 )
...
It's now a month after v5.8 has been released. Time to bring these changes back in.
Resubmission of https://github.com/mattermost/mattermost-plugin-sample/pull/23
2019-03-18 19:59:04 +01:00
Carlos Tadeu Panato Junior
cf8dcecdf2
introducing circleci ( #31 )
...
Based on the dev meeting we are moving to circleci
2019-03-06 19:03:52 +01:00
Hanzei
c415b6b7b8
Prohibit variable shadowing ( #30 )
2019-02-06 18:46:30 +01:00
Hanzei
ff7758dc6a
Add make coverage ( #29 )
...
This PR adds a 'make coverage` command, which creates a coverage report for the server code.
2019-01-23 20:53:49 +01:00
Yusuke Nemoto
c33bf64be0
Modify make help target for macOS ( #27 )
2019-01-09 16:30:14 +01:00
Lev
c347da882c
Revert "Overwrite plugin when deploying ( #23 )" ( #25 )
...
This reverts commit b64b9ec8ba
.
2018-12-27 09:29:12 -08:00
Hanzei
b64b9ec8ba
Overwrite plugin when deploying ( #23 )
2018-12-17 20:53:30 +01:00
Hanzei
415e8b5f72
Update dependencies for 5.6 ( #24 )
2018-12-17 08:28:01 +01:00
Jesse Hallam
76ba0b57a7
configuration: ignore an empty configuration struct in setConfiguration ( #21 )
...
If the plugin leaves the configuration struct empty, go will optimize away allocations of the zero-width struct failing the `setConfiguration` check that prevents a user from introducing race conditions.
2018-11-15 14:02:55 +01:00
Hanzei
b303e8da00
Add make help target ( #19 )
...
* Add make help target
* Move documentation to previous line
2018-11-08 16:30:58 -05:00
Carlos Tadeu Panato Junior
8bbec359c7
add travis badge ( #20 )
2018-11-08 13:12:13 -05:00
Jesse Hallam
abded0bb53
Merge pull request #15 from hanzei/fmt
...
Add check-style makefile target
2018-10-17 18:02:45 -04:00
Jesse Hallam
8e2e57e1f5
Merge pull request #16 from hanzei/mm_5.4
...
Update Mattermost to v5.4
2018-10-17 10:18:48 -04:00
Hanzei
e30e2613a4
Update Mattermost to v5.4
2018-10-17 07:19:22 +02:00
Hanzei
f31f0f8a0a
Fix bug
2018-10-12 16:10:07 +02:00
Hanzei
1495c46ae6
Add govet target
2018-10-12 15:05:14 +02:00
Hanzei
0f51dc026e
Add make check-style to travis
2018-10-12 14:56:57 +02:00
Hanzei
fbdb357823
Add check-style makefile target
2018-10-12 13:38:18 +02:00
Jesse Hallam
b9e17a1c5f
Merge pull request #13 from hanzei/http
...
Add hello world http method
2018-10-10 10:44:40 -04:00
Joram Wilander
fa21513efc
Merge pull request #14 from hanzei/travis
...
Add travis CI
2018-10-10 08:44:08 -04:00
Hanzei
c1397f440e
Add hello world http methode and test
2018-10-10 12:46:52 +02:00
Hanzei
5befc9b69f
Add github.com/stretchr/testify to dependencies
2018-10-10 12:45:23 +02:00
Jesse Hallam
399c4686e6
Merge pull request #11 from hanzei/dependencies
...
Update Dependencies
2018-10-05 12:25:31 -04:00
Hanzei
8c2c1d6c6b
Add travis CI
2018-10-04 18:11:30 +02:00
Jesse Hallam
c21ab98b92
Merge pull request #12 from mattermost/mm-12193-remove-auto-unmarshalling
...
MM-12193: illustrate simplified, but safe configuration handling
2018-10-03 13:13:52 -04:00
Jesse Hallam
75eccc0628
pull updates from demo plugin pr
2018-10-02 14:09:41 -04:00
Jesse Hallam
eb2678c625
clarify avoiding API while holding configurationLock
2018-10-01 17:18:36 -04:00
Jesse Hallam
8adb629abd
simplify configuration.Clone
2018-10-01 17:12:41 -04:00
Jesse Hallam
e1e2ca5951
MM-12193: illustrate simplified, but safe configuration handling
2018-10-01 14:16:45 -04:00
Hanzei
d918262365
Update server dependencies
2018-09-23 08:22:59 +02:00
Hanzei
d0df44c109
Run go tests with -race & fix install
2018-09-23 08:18:07 +02:00
Joram Wilander
8e081f9969
Merge pull request #10 from mattermost/tweak-plugin-version
...
tweak plugin id/version injection
2018-09-21 08:37:03 -04:00