Commit Graph

37 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
01956af43a feat: remove sync hooks support 2021-04-22 11:35:36 -04:00
Barış Soner Uşaklı
34b9aaedee feat: allow sync function (#9379)
* feat: allow sync function

* fix: remove async
2021-03-13 12:03:06 -05:00
Barış Soner Uşaklı
e725beaa4a Revert "feat: allow filter functions that return promises or the data directly"
This reverts commit e6c52cf26c.
2021-03-13 11:39:34 -05:00
Barış Soner Uşaklı
e6c52cf26c feat: allow filter functions that return promises or the data directly 2021-03-13 11:27:53 -05:00
Barış Soner Uşaklı
46270f9f20 feat: bring back static hook timeout 2021-03-11 22:56:14 -05:00
Barış Soner Uşaklı
39b0e0fb91 fix: tests 2021-03-11 22:12:05 -05:00
Peter Jaszkowiak
23f212a4c0 chore: eslint prefer-destructuring 2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
dab3b23575 chore: eslint no-var, vars-on-top 2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
b56d9e12b5 chore: eslint prefer-arrow-callback 2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
707b55b6a5 chore: eslint prefer-template 2021-02-08 18:06:44 -05:00
Barış Soner Uşaklı
647d3ba810 fix: removed methods 2021-01-27 17:36:58 -05:00
Julian Lam
885e0ebfde Revert "fix: bypass nbbpm for now"
This reverts commit 33c1bd5f01.
2020-09-08 11:42:35 -04:00
Barış Soner Uşaklı
33c1bd5f01 fix: bypass nbbpm for now 2020-09-06 21:46:35 -04:00
Barış Soner Uşaklı
3a23ddaba5 feat: move plugin tests to separate file 2020-05-04 14:23:45 -04:00
Barış Soner Uşaklı
a6bb9f4364 fix: #3321, run plugin tests for installed plugins 2020-05-03 22:59:03 -04:00
Barış Soner Uşaklı
01d1ae78c8 fix: #8120, bubble errors from static hooks 2020-01-17 13:30:57 -05:00
Aziz Khoury
a6436716ea feat: hooks can now return promise or call callbacks
* hooks can now return promise or call callbacks, either way works

* cleanups

* moar cleanups and fix callback 1st null arg

* rm unnessesary spread
2019-06-10 12:05:27 -04:00
renovate[bot]
64b9dabff8 chore(deps): update dependency eslint-config-airbnb-base to v13 (#6599)
* chore(deps): update dependency eslint-config-airbnb-base to v13

* chore: #6599, linting 😬
2018-11-07 15:53:14 -05:00
Barış Soner Uşaklı
2bd02a7ae1 disable timeout on plugin installs 2018-09-29 06:45:12 -04:00
Barış Soner Uşaklı
15e9bbac92 closes #6311 2018-02-15 14:52:49 -05:00
Barış Soner Uşaklı
b778c8433a change hook name 2017-12-13 12:06:52 -05:00
Barış Soner Uşaklı
b55087dab7 closes #6166 2017-12-13 12:06:45 -05:00
Peter Jaszkowiak
dfad76120d Support npm@5 and yarn (#6010)
* Support npm@5 and yarn

Use package.default.json
Partial #6008

- Overwrite package.json with package.default.json values
- `dependencies` field is merged with package.default.json version taking precidence
- `./nodebb upgrade` automatically does those things and runs `git pull`
- use `./nodebb upgrade --dev` to avoid the `git pull`

* added logic to preserve extraneous plugins installed in node_modules/

* Don't automatically git pull

* Simplify package-install, run it on upgrade just in case
2017-11-02 14:12:05 -04:00
Peter Jaszkowiak
dc324b36b2 Add test for Plugins.showInstalled 2017-07-19 12:18:57 -06:00
Peter Jaszkowiak
90da6d889d Only load necessary plugin data
Fix tests to work in this case
Add more verbose messages to plugins/data
2017-05-18 01:32:20 -06:00
Peter Jaszkowiak
896c8c7343 ESlint object-curly-spacing 2017-02-18 12:30:49 -07:00
Peter Jaszkowiak
3b0dd2d1ef ESlint padded-blocks 2017-02-18 02:32:24 -07:00
Peter Jaszkowiak
3361a72725 ESlint no-plusplus
and no-empty, space-unary-ops
2017-02-18 01:12:18 -07:00
Peter Jaszkowiak
52f2028206 ESlint no-multiple-empty-lines 2017-02-17 22:08:23 -07:00
Peter Jaszkowiak
b09b3aef7f ESlint no-undef, remove global comments 2017-02-17 22:03:55 -07:00
Barış Soner Uşaklı
c4d4d2385b closes #3973 closes #5303 2016-12-22 01:48:41 +03:00
barisusakli
a4ebb7f56e test plugin static assets 2016-11-30 18:21:30 +03:00
barisusakli
50a2a7abbe plugins/install tests 2016-11-18 14:03:06 +03:00
barisusakli
2d10490ca3 more plugin tests 2016-10-27 11:57:07 +03:00
Sergii Paryzhskyi
e515b791da Fix eslint rules (#5117)
* Fix semi linter rule

* Fix semi-spacing linter rule

* Fix no-undef-init linter rule

* Fix space-before-blocks linter rule
2016-10-25 15:34:47 -04:00
barisusakli
1a63672e66 more test fixes 2016-10-16 21:51:42 +03:00
barisusakli
bfcef27c47 plugin tests 2016-10-14 21:48:38 +03:00