66 Commits (252dddfc1049d5c7ddebf67c15077ea64dc5889f)

Author SHA1 Message Date
Barış Soner Uşaklı fdd51f43d8 fix dirname 7 years ago
Peter Jaszkowiak c8a6caa842 Fix #6244, dpendency auto-install fixed
Node caches the result of stat on module directories
7 years ago
Peter Jaszkowiak 9c1faa7643 Fix running `./nodebb` with no arguments doing nothing 7 years ago
Peter Jaszkowiak 0929fd2a11 Fix issue where outdated packages are never updated 7 years ago
Julian Lam 2c8cef6e92 updated error code for missing package.json @pitaj 7 years ago
Peter Jaszkowiak 4c7a275034 Was checking existence of wrong package.json (#6222) 7 years ago
Julian Lam b1bc40359d fixed incorrect flag in upgrade help text 7 years ago
Peter Jaszkowiak 4387d5d466 Ensure installed correct version of modules on startup, bump dependencies (#6207)
* Ensure installed correct version of modules

* Bump dependencies

* Bump promise-polyfill

* Fix emailer test

* Fix auto-install regression

introduced in 9b5e0f9e95
7 years ago
Julian Lam 9b5e0f9e95 updated upgrade logic to not break ACP restart flow 7 years ago
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
7 years ago
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
7 years ago
Barış Soner Uşaklı 2bb8227574 closes #6168 7 years ago
Peter Jaszkowiak fc19f3af61 Misc fixes and improvements (#6143)
* `setup` command fixes and improvements

- Enable using the `./nodebb setup` command for auto-setup with a JSON argument
- Change CLI so package-install and dependency install are separate steps
- Fix #6142

* Prevent compiling templates multiple times

- Multiple requests for same template get pooled
- Hopefully fixes the "templateFunction is not a function" error which happens if site is restarted during high-traffic times

* More helpful upgrade template
7 years ago
Julian Lam e723f2ce10 close #6099 7 years ago
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
7 years ago
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
7 years ago