Christopher Speller
ef0ac3babb
Fix makefile to npm install when package.json changes. ( #94 )
2020-04-28 10:43:35 -03:00
dependabot[bot]
1ce44fa2a3
Bump acorn from 5.7.3 to 5.7.4 in /webapp ( #92 )
...
Bumps [acorn](https://github.com/acornjs/acorn ) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases )
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-04-06 07:10:06 +02: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
Ben Schumacher
ebbd3cdaad
Add test output files to make clean ( #91 )
2020-03-30 18:22:31 -04:00
Ben Schumacher
5d32943c36
Add junit.xml to gitignore ( #89 )
2020-03-20 09:07:35 +01: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
Ben Schumacher
8fb70ec7f3
Bump dependencies and go version ( #87 )
...
* Bump go dependencies
* Bump go version to 1.14
2020-02-28 11:25:13 -05: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
Michael Kochell
adf353748e
Add corejs: 3
, and pull out babel config from webpack config ( #84 )
...
* add `corejs: 3` and pull out babel config from webpack config
* typo
2020-02-06 07:09:11 -05:00
Maria A Nunez
44d47fecef
Remove node_modules
from root .gitignore ( #81 )
2020-02-05 16:15:32 +01:00
Allan Guwatudde
81af083834
Add webapp component test watch command ( #82 )
2020-02-05 05:38:55 -05:00
Maria A Nunez
fd22922b4a
Update .gitignore ( #80 )
...
* Update .gitignore
* linting
* Organized gitignore entries
2020-01-31 13:26:01 -05:00
Md Zubair Ahmed
80fb59276d
Fixes #13571 : Introduce webapp tests to mattermost-plugin-starte… ( #78 )
...
* added test setup
* added missing deps
* support for new babel config
* update enzyme types to restrict to 3.10.4 itself
Co-Authored-By: Michael Kochell <mjkochell@gmail.com>
* pkg name change
* fixed to absolute versioning for all dependencies
Co-authored-by: Michael Kochell <mjkochell@gmail.com>
2020-01-17 14:55:54 -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
8f6268d813
npm audit fix --save ( #75 )
2019-12-16 23:56:42 -04:00
Jesse Hallam
8e090661e8
make deploy reliable using Go ( #74 )
2019-11-20 23:16:23 +01:00
Christopher Poile
4d9ee39eb2
fix for go 1.13 strictness ( #70 )
...
* fix for go 1.13 strictness
* move to requiring 5.16
* go back to requiring Mattermost Server 5.12
2019-11-13 10:01:32 -05:00
Nathan Mkaya
6a6bcd0084
Fix Issue #69 ( #71 )
...
Added check if token is empty raise an error
2019-11-07 11:04:44 +01:00
Takuya N
69b6ae8467
Add a link to the project status page on CircleCI ( #63 )
2019-09-20 06:46:23 +02:00
Nikhil Ranjan
7c1e432a27
replacing apache.com/thrift with github.com to solve network issue when building; missing dangling comma ( #66 )
2019-09-16 18:02:14 -04:00
Nikhil Ranjan
3475ff3c9d
add typescript support ( #64 )
...
* add typescript support
* remove typescript extend from eslint-config-mattermost
2019-09-04 17:24:37 -03:00
dependabot[bot]
aac26c1068
Bump mixin-deep from 1.3.1 to 1.3.2 in /webapp ( #62 )
...
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep ) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases )
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2 )
Signed-off-by: dependabot[bot] <support@github.com>
2019-08-28 07:13:11 -07:00
Ian Whitlock
49e8d0b875
Add debug-dist and debug-deploy build targets ( #61 )
...
* Add debug-dist and debug-deploy build targets
* Fix typos in documentation for new targets
Co-Authored-By: Jesse Hallam <jesse.hallam@gmail.com>
2019-08-28 09:53:15 -04:00
dependabot[bot]
90c0d4e853
Bump eslint-utils from 1.3.1 to 1.4.2 in /webapp ( #60 )
...
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils ) from 1.3.1 to 1.4.2.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases )
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.3.1...v1.4.2 )
Signed-off-by: dependabot[bot] <support@github.com>
2019-08-27 07:42:59 -07: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
dependabot[bot]
e7b5efefc6
Bump lodash from 4.17.11 to 4.17.14 in /webapp ( #54 )
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.11 to 4.17.14.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.14 )
Signed-off-by: dependabot[bot] <support@github.com>
2019-07-15 07:37:33 -07:00
dependabot[bot]
3d59ca1912
Bump lodash-es from 4.17.10 to 4.17.14 in /webapp ( #52 )
...
Bumps [lodash-es](https://github.com/lodash/lodash ) from 4.17.10 to 4.17.14.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.10...4.17.14 )
Signed-off-by: dependabot[bot] <support@github.com>
2019-07-15 07:37:24 -07:00
Yusuke Nemoto
d08a4c1ccc
Add a task of webapp test ( #51 )
...
* Add a task of webapp test
* Flesh out tests
* Simplify test case
* Remove unnecessary dependency
* Fix style
* Add dependency
* Add trainling newline
2019-07-12 12:07:20 -04:00
Jesse Hallam
b8201a2731
downstream dependency updates from mattermost-plugin-demo ( #53 )
2019-07-12 07:43:45 -07:00
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