Julian Lam
689c125cd3
fix : #10229 , package merging should deep merge nested objects
...
+ tests
2022-02-04 16:20:31 -05:00
Julian Lam
8ba9e67cbd
feat: detect alternative package managers based on lockfile
...
If a package manager is not explicitly set in config.json or passed-in via argv/env, NodeBB will now check for the presence of alternative package managers' lockfiles and adjust the package manager to-be-used accordingly. If the standard npm lockfile exists, npm will always be used.
2022-02-02 17:15:44 -05:00
Julian Lam
9a1690857d
refactor: updated package-install.js exports style, new exported method 'getPackageManager' for use in cases where nconf is unreliable, fix bug where nconf was not correctly set up in cli tools, proper installation of dev dependencies based on global env value
2022-02-02 11:47:35 -05:00
Julian Lam
c869d7dbb3
docs: some tweaks to cli help
2022-02-01 21:51:16 -05:00
Julian Lam
cf8f62aed9
feat: remove colors in favour of chalk ( #10142 )
...
* feat: remove colors in favour of chalk
* fix: bad conversion from colors to chalk in src/cli/index.js
* fix: padWidth calculation to account for control characters
* fix: termWidth calculation, but swapped one problem for another
* fix: formatItem, implement my own padRight to take control characters into account
2022-02-01 21:43:09 -05:00
Barış Soner Uşaklı
50063fe238
fix: regression from 27c05448e1
2021-11-29 15:17:02 -05:00
Barış Soner Uşaklı
71e34be565
fix: cli password reset
2021-11-22 22:20:01 -05:00
Julian Lam
f0d192fbfd
feat: autocomplete for activate/reset
...
useless features™️
2021-11-22 15:37:37 -05:00
Julian Lam
449366ca83
fix: consolidate plugin reset logic
2021-11-19 12:21:14 -05:00
Barış Soner Uşaklı
fb363957d1
refactor: tab rules
2021-11-18 16:42:18 -05:00
Barış Soner Uşaklı
27c05448e1
refactor: remove another async.series
2021-11-16 17:11:26 -05:00
Julian Lam
44687394dc
fix: restore plugin upgrade checking logic
...
unintended regression from ac86937c88
2021-10-19 10:25:51 -04:00
Barış Soner Uşaklı
c70eaa0a34
refactor: prompt.get already returns promise
2021-10-18 17:34:26 -04:00
gasoved
c1149d045c
fix: better nomenclature
2021-10-08 10:37:55 -04:00
gasoved
d1ff3d6298
feat: cli user management commands ( #9848 )
...
* feat: cli user management commands
* fix: consistent nomenclature
2021-10-04 15:59:09 -04:00
Julian Lam
acdbd04913
fix : #9627
2021-06-25 13:56:21 -04:00
Barış Soner Uşaklı
1ec9739629
switch to request-promise-native ( #9561 )
...
* refactor: cli/upgrade async/await
async/await cli/upgrade-plugins
remove unused payload.files
* fix: add missing await
* refactor: use request-promise-native
2021-05-17 17:24:23 -04:00
Barış Soner Uşaklı
ac86937c88
refactor: cli/upgrade async/await ( #9558 )
...
* refactor: cli/upgrade async/await
async/await cli/upgrade-plugins
remove unused payload.files
* fix: add missing await
2021-05-17 17:08:00 -04:00
Barış Soner Uşaklı
1ce595083a
fix: ioredis upgrade fix, maybe
2021-05-17 13:59:11 -04:00
Barış Soner Uşaklı
6907837fce
fix : #9483 , fix events count display
2021-04-11 16:13:31 -04:00
Peter Jaszkowiak
2a03012e2c
fix: ./nodebb help with commander@7 ( #9434 )
...
hopefully this one last as long as the last one did
2021-03-27 12:14:27 -04:00
Peter Jaszkowiak
b9fd2c87f3
chore: bump deps ( #9335 )
...
* chore: bump deps
* fix: husky git hooks
2021-02-28 17:54:56 -05:00
Peter Jaszkowiak
0d59fe3d2b
fix( #9315 ): api v3 post, put, del JSON
...
also allow `app.alertError` to be called without an argument
also fix `./nodebb build --dev` to actually build in dev mode
2021-02-22 21:19:46 -05:00
Peter Jaszkowiak
cc9d6fd08b
chore: eslint max-len
2021-02-08 18:06:44 -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
Peter Jaszkowiak
4ee0f1459d
chore: eslint import/newline-after-import
2021-02-08 18:06:44 -05:00
Barış Soner Uşaklı
ef16cd2e6f
fix : #9192 , exit after logging error
2021-01-12 10:46:55 -05:00
Peter Jaszkowiak
a51c5698c7
fix: --help usage info
...
yargs (via nconf) would exit when detecting a help flag
also improves the speed of `./nodebb help build`
2021-01-06 20:43:07 -05:00
Barış Soner Uşaklı
8c31afae7d
feat: #9173 , show installed plugin versions in ./nodebb plugins
2021-01-06 11:52:19 -05:00
Barış Soner Uşaklı
b8cafefce2
fix: winston usages
2020-11-26 13:56:34 -05:00
Barış Soner Uşaklı
47a19d6763
fix: error message
2020-11-26 12:22:24 -05:00
Barış Soner Uşaklı
16d03975a0
fix: winston error message
2020-11-06 12:24:50 -05:00
Barış Soner Uşaklı
e362c342a3
fix : #8630 , sort extra deps
2020-10-17 23:56:42 -04:00
Barış Soner Uşaklı
1fd2eba6f2
refactor: async/await
...
src/cli/manage.js
src/meta/build.js
src/meta/css.js
src/meta/js.js
2020-10-14 22:49:39 -04: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
7f58e3ab09
fix: error on reset -p if plugin is not active
...
No need to throw error if plugin was not active, just silently OK
2020-09-29 14:01:30 -04:00
Barış Soner Uşaklı
5f10d67db5
Remove sounds ( #8617 )
...
* feat: remove sounds
* feat: remove more sounds
* feat: disable sounds plugin
* fix: openapi
2020-09-06 23:45:00 -04:00
Julian Lam
a4dbbc3749
feat: sort dependencies alphabetically
...
... when merging from install/package.json
/cc @pitaj
2020-08-25 11:06:51 -04:00
Julian Lam
840cb5105f
fix: package-install clobbering scoped nodebb plugins
2020-08-21 17:08:15 -04:00
Andrew Rodrigues
7daba7ddc1
fix : #8570
2020-08-19 15:26:09 -04:00
Barış Soner Uşaklı
0189945996
refactor: remove util.promisify calls
2020-08-14 00:05:03 -04:00
Peter Jaszkowiak
1d170e0c1c
fix : #8547 , remove old deps during upgrade ( #8557 )
2020-08-11 14:32:44 -04:00
Barış Soner Uşaklı
33c5988c34
refactor: rewrite src/upgrade.js with async/await
2020-08-07 19:52:04 -04:00
Barış Soner Uşaklı
776e34a80f
refactor: rewrite src/install with async/await
2020-07-31 12:49:25 -04:00
Barış Soner Uşaklı
e80379dc0e
feat: display stack trace on winston.error
2020-06-20 23:32:12 -04:00
Julian Lam
922d49be0b
fix(style): switch..case
2020-06-03 11:26:08 -04:00
Barış Soner Uşaklı
ec5582b53c
feat: add privilege give/rescind hooks ( #8336 )
...
* feat: add privilege give/rescind hooks
action:privileges.categories.give/rescind
action:privileges.global.give/rescind
breaking change, privileges.categories.give/rescind and privileges.global.give/rescind use full privilege name for groups ie `groups:find` instead of `find`
* fix: tests, privileges renamed
2020-05-26 21:57:38 -04:00