Commit Graph

43 Commits

Author SHA1 Message Date
Peter Jaszkowiak
4ee0f1459d chore: eslint import/newline-after-import 2021-02-08 18:06:44 -05:00
Julian Lam
6e2da9966e refactor: move plugin hook methods to plugin.hooks.* 2020-11-20 16:32:39 -05:00
Peter Jaszkowiak
1aa336d837 refactor: shared constants (#8707)
define plugin name and theme name regexs in one location for consistency

define various shared paths in one place for consistency
2020-10-01 23:02:44 -04:00
Julian Lam
5ddf70221c feat: upon plugin installation via ACP, check against nbbpm first 2020-09-24 15:06:47 -04:00
Barış Soner Uşaklı
0189945996 refactor: remove util.promisify calls 2020-08-14 00:05:03 -04:00
Barış Soner Uşaklı
c2ca02dfc7 fix: #8474
make isPrimary and isCluster always booleans
they were strings when using ./nodebb start and boolean if they were in config.json and started with node app.js
2020-07-07 20:13:14 -04:00
Jonson Petard
e6a1741c2e Support package manager: cnpm and pnpm (#8222)
* feat: support pnpm, cnpm

* feat: store supportedPackageManager in default package.json

* feat: store supportedPackageManager in src/cli/package-install.js

Co-authored-by: a632079 <a632079@qq.com>
2020-04-13 09:59:52 -04:00
Barış Soner Uşaklı
592d9c82c5 fix: #7844, add uid to events, log plugin install/uninstall events 2019-08-14 19:17:43 -04:00
Barış Soner Uşaklı
c126cd8572 feat: #7743 plugins 2019-07-22 00:30:47 -04:00
Peter Jaszkowiak
be00a1c013 Support for using yarn instead of npm, include unread counts on cold load (#6179)
* Close #6178

* Support for package managers besides npm

- Also fixes issue where upgrade-plugins wouldn't work
2017-12-20 15:56:14 -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
Julian Lam
b4870654fc Merge pull request #5728 from NodeBB/patch-pitaj
Assorted Fixes
2017-06-02 10:14:50 -04:00
Julian Lam
29e868b002 closes #5585 2017-06-01 16:24:45 -04:00
Peter Jaszkowiak
34af855848 Fix npm@5 saving by default 2017-06-01 14:16:13 -06:00
barisusakli
d500e7f2aa add back action:plugin.install and action:plugin activate #5407 2017-04-19 13:23:53 -04:00
Julian Lam
72e77772db Merge branch 'master' into develop 2017-02-24 12:46:40 -05:00
Peter Jaszkowiak
4bb49a7171 ESlint no-unused-vars 2017-02-18 15:05:36 -07: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
feb8405f95 ESlint eol-last 2017-02-18 02:30:48 -07:00
Peter Jaszkowiak
bc1d70c126 ESlint comma-dangle 2017-02-17 19:31:21 -07:00
Julian Lam
8a0a74d95e Merge remote-tracking branch 'origin/master' into develop 2017-02-07 16:03:54 -05:00
barisusakli
b37d52c089 closes #5407 2017-01-31 18:38:06 +03:00
barisusakli
3fb7f9fce5 closes #5398 2017-01-26 22:18:16 +03:00
Peter Jaszkowiak
001aa3d1a8 Fix tests, npm Windows fixes 2017-01-21 19:21:02 -07:00
barisusakli
3bd1c6c2b5 notification tests 2016-12-15 16:08:32 +03:00
Julian Lam
e028ac1363 passing in arguments to npm instead of command string, closes #5286 2016-12-14 09:28:30 -05:00
barisusakli
5d6e2ad083 multiple test fixes 2016-11-23 17:15:36 +03:00
barisusakli
50a2a7abbe plugins/install tests 2016-11-18 14:03:06 +03:00
HeeL
4a3c31b2dc Fix space-before-function-paren linter rule 2016-10-13 11:43:39 +02:00
Mathias Schreck
ce9ee62fa0 Handle callback errors 2016-08-17 12:54:59 +02:00
barisusakli
d035b1a353 removed npm dep, use exec('npm install/uninstall'); closes #3780 2016-01-12 13:53:26 +02:00
barisusakli
e3ca91e325 #3591 fixes item 1 2015-09-12 15:14:49 -04:00
Julian Lam
74f2f7caef fixes #3307 2015-07-08 17:04:25 -04:00
Barış Soner Uşaklı
f7d7cc2610 closes #2808 2015-03-06 13:00:56 -05:00
psychobunny
dee5d18439 require npm module only as needed - shaves off a full second of loading time yay 2015-02-23 16:08:29 -05:00
Barış Soner Uşaklı
66d6c49ed4 closes #2749 2015-02-23 15:55:45 -05:00
Barış Soner Uşaklı
55884220b4 #2749 upgrade plugins:active to zset 2015-02-23 14:57:22 -05:00
Julian Lam
d4d99cba7c fixes #2615 2015-01-15 13:53:17 -05:00
barisusakli
3e666adfea action:plugin.install and uninstall 2015-01-15 12:34:15 -05:00
barisusakli
fc79b3a932 fix isInstalled, publish plugin install and upgrade requests 2014-12-26 20:18:05 -05:00
barisusakli
48acb0082e isActive 2014-12-26 19:17:37 -05:00
barisusakli
d0b8337075 broke plugins.js into files 2014-12-26 18:54:20 -05:00