Commit Graph

327 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
8e23dec84b fix: lint 2020-04-01 21:57:28 -04:00
Barış Soner Uşaklı
38322ec308 fix: #7949, delete old user notifs 2019-10-07 14:10:08 -04:00
Barış Soner Uşaklı
bd026cb1ae fix: upgrade scripts 2019-09-23 23:33:27 -04:00
Barış Soner Uşaklı
a4dec7e3ab fix: #7860, allow running single upgrade scripts from plugins 2019-08-22 20:40:44 -04:00
Julian Lam
d0ee312cd3 feat: use fewer system resources to draw the progress bar
There's reason to believe that upgrade scripts will run faster
if the system isn't spending a non-insignificant amount of
resources simply drawing the progress bar. Closes #7711

Some context: https://github.com/npm/npm/issues/11283
2019-06-25 15:10:36 -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ı
26d4e0852f use includes instead of indexOf
use _.uniq instead of filter&indexOf
2018-10-20 14:40:48 -04:00
Barış Soner Uşaklı
6c5e99171e closes #6309 2018-02-06 14:34:49 -05:00
Barış Soner Uşaklı
c3f56e2ab5 closes #6197 2017-12-25 22:26:24 -05:00
Julian Lam
6d15861a55 removed pluralisation @pitaj 2017-12-19 14:21:20 -05:00
Julian Lam
acc58d707c Updated plugin checking logic
* Fixes #6183
* Also changed a bunch of console.logs to process.stdout.write,
  so the command line output is cleaner
2017-12-19 12:07:45 -05:00
Barış Soner Uşaklı
13e56ad5f3 make sure unfilled is not negative 2017-12-18 21:00:49 -05:00
Peter Jaszkowiak
dbdc05404d Use console.log instead of process.stdout.write (#6123)
* Use console.log instead of process.stdout.write

* Don't break the installer
2017-11-27 15:44:30 -05:00
Peter Jaszkowiak
ae24bca16e CLI refactor with commander (#6058)
* CLI refactor with commander

- Modularized the functionality
- All functionality done directly from `./nodebb` now
(still available from `app` for backwards compatibility)
- Moved all CLI code from `./nodebb` to `src/cli`
- Fixed `nodebb.bat` to work from any location, like `./nodebb`, and
also hides command output
- Overwrite some commander methods to add CLI color support
- Added `./nodebb info` for quick info including git hash, NodeBB
version, node version, and some database info
- Refactored `./nodebb reset` to allow multiple resets at once
- Changed `./nodebb restart` to essentially stop and start, as Windows
doesn't support signals
- Added `-l, --log` option which works on `./nodebb start` and `./nodebb
restart` to show logging, like `./nodebb slog`
- Expanded `-d, --dev` option which works on them as well, like
`./nodebb dev`
- Improvements to self-help. `./nodebb build -h` will output all
possible targets
- `./nodebb reset` explains usage better

* Fix some style inconsistencies

* Fix prestart being required before modules installed

* Fix travis failures

* Fix `help` command to output help for subcommands

* Pick steps of the upgrade process to run

* Fix formatting for upgrade help

* Fix web installer
2017-11-23 10:55:03 -05:00
Baris Usakli
6778cce265 add new zset 2017-10-30 17:07:51 -04:00
Julian Lam
ec3bb1c727 allowing plugins to define upgrade scripts 2017-10-20 15:34:27 -04:00
Peter Jaszkowiak
1c5bdcb670 Enable running multiple upgrades at once (#5984) 2017-10-13 13:15:18 -04:00
Julian Lam
88a763e08b changes to upgrade script progress bars to work better on narrow terminals, fixes #5732 2017-06-02 10:58:39 -04:00
Julian Lam
3467071a7d fixed extra line break in upgrade scripts introduced in 5516352758 2017-06-01 15:02:55 -04:00
Julian Lam
12e3369522 Tweaked upgrade script instructions 2017-05-23 11:35:40 -04:00
Peter Jaszkowiak
8a87311d5c Remove annoying jslint comment
Use an rc file instead
2017-04-26 15:08:12 -06:00
barisusakli
5516352758 closes #5612 2017-04-22 13:43:58 -04:00
Julian Lam
7a0db03d99 Merge branch 'upgrade-progress-bar' into develop 2017-04-18 16:46:19 -04:00
Julian Lam
82bfa752b9 Removed outdated list of available upgrade scripts 2017-04-16 15:47:32 -04:00
Julian Lam
33082d90cc updated logic to make it a bit simpler to implement per upgrade script 2017-04-16 13:25:01 -04:00
Julian Lam
1cd50a8c30 Merge branch 'develop' into upgrade-progress-bar 2017-04-16 11:27:29 -04:00
barisusakli
e63559b6fd closes #5484 2017-04-14 12:59:36 -04:00
barisusakli
886768ba84 check both date and upgrade count 2017-04-13 19:04:22 -04:00
barisusakli
05e9e88a15 fix lint 2017-04-13 18:53:46 -04:00
barisusakli
1cf775a4b8 upgrade script fixes 2017-04-13 18:43:39 -04:00
barisusakli
520d6954c1 test node 7 2017-04-13 17:58:44 -04:00
barisusakli
f4b8cb7217 added missing return 2017-04-13 17:02:13 -04:00
barisusakli
6d1702c600 wait for calls to finish 2017-04-13 16:58:41 -04:00
Julian Lam
42b5cdaae3 progress bars! omg 2017-04-12 17:30:20 -04:00
Barış Soner Uşaklı
fe27d40ff6 closes #5542 2017-03-23 10:58:28 +03:00
Julian Lam
ce64db8d71 fix logic error that caused upgrade scripts to always be skipped 2017-03-21 21:10:46 -04:00
Julian Lam
25518bdd18 removed unused vars 2017-03-13 16:54:29 -04:00
Julian Lam
c323a813c0 added logic to handle backwards compatibility with old schemaDate method of tracking upgrade scripts 2017-03-13 16:45:05 -04:00
Julian Lam
34d24c4fd4 Refactored upgrade scripts once more (for great justice!) #5467 2017-03-10 19:07:42 -05:00
Julian Lam
67e8bab783 Merge branch 'develop' into upgrades-refactor 2017-03-01 12:12:04 -05:00
Julian Lam
15665d0872 re-ordered upgrade scripts so schemaDate is saved properly 2017-03-01 12:11:05 -05:00
Julian Lam
48fc74f1fa Merge branch 'develop' into upgrades-refactor
re-added upgrade scripts from #5464
2017-03-01 11:11:40 -05:00
Julian Lam
7c21152f2e Merge remote-tracking branch 'origin/master' into develop 2017-03-01 10:55:15 -05:00
Barış Soner Uşaklı
fecdbc969f fix set call 2017-03-01 17:47:59 +02:00
Barış Soner Uşaklı
c5f40e3cf5 fix indents 2017-03-01 17:42:50 +02:00
Barış Soner Uşaklı
6222b55dd8 Merge branch 'master' into assets-images-upgrade 2017-03-01 17:40:44 +02:00
barisusakli
ac84e447dc closes #5492 2017-03-01 17:37:17 +03:00
Peter Jaszkowiak
b96b983552 Upgrade script for prepending /assets in config
Fix for sound settings upgrade script to upgrade user sound settings even if admin settings weren't set
2017-02-28 13:57:24 -07:00
Julian Lam
513f72c0e9 Merge branch 'develop' into upgrades-refactor 2017-02-28 12:35:48 -05:00
Julian Lam
45c479a101 Merge branch 'master' into develop 2017-02-28 12:07:56 -05:00