Commit Graph

92 Commits

Author SHA1 Message Date
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
Peter Jaszkowiak
bbdc55cb3a Better fix for #5993 (#6034)
* Better fix for #5993

Also a nice newline so the line doesn't get overwritten when running `./nodebb upgrade`

* Optimizations for custom homepage

Move it into a separate module
2017-11-04 10:51:44 -04: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
e609e497b3 Provide more error information to logs
Provides full stack instead of just message
2017-11-01 18:59:48 -06:00
aStonedPenguin
acfda106f1 Fix dead links (#5856)
* Fix dead links

* ok
2017-08-11 23:43:41 -04:00
Unbug Lee
5e16933c1f Arguments supports for start command (#5843)
* backport cache fix

* backport paste image fix

* backport crash fix

* up emoji one

* Update package.json

* backport #5692

* Incremented version number - v1.5.1

* Incremented version number - v1.5.2

* arguments supports for start command

remove concat
2017-07-28 11:35:56 -04:00
Julian Lam
29e868b002 closes #5585 2017-06-01 16:24:45 -04:00
Peter Jaszkowiak
bd6aca7d94 More friendly error message if module loading fails 2017-05-10 15:05:54 -06:00
Peter Jaszkowiak
73f375252f Automatically install dependencies 2017-05-10 12:23:12 -06:00
barisusakli
236758b712 Merge remote-tracking branch 'refs/remotes/origin/master' into develop 2017-04-18 14:00:14 -04:00
barisusakli
27a76fcfc9 closes #5607 2017-04-18 13:53:43 -04:00
barisusakli
b33d25b0b8 use name 2017-04-18 13:33:32 -04:00
barisusakli
bda3c2863b closes #5605 2017-04-18 13:32:47 -04:00
Peter Jaszkowiak
484a800327 Merge branch master into develop 2017-04-12 21:11:39 -06:00
Peter Jaszkowiak
75d291183d Fix using nodebb in other CWDs 2017-04-12 15:22:58 -06:00
Julian Lam
35248c543b linting nodebb executable 2017-02-25 15:40:05 -05:00
Julian Lam
5b8c9503c3 refactor upgrade scripts to use individual files in src/upgrades/ as source of schema changes 2017-02-22 13:20:47 -05:00
Peter Jaszkowiak
360a35d0a6 Resolve merge conflicts 2017-02-02 22:15:26 -07:00
Peter Jaszkowiak
553567c3b2 Refactor nodebb, move build.js, add --dev 2017-02-02 19:15:01 -07:00
Peter Jaszkowiak
001aa3d1a8 Fix tests, npm Windows fixes 2017-01-21 19:21:02 -07:00
Peter Jaszkowiak
386284beb8 Windows compat 2017-01-12 15:45:44 -07:00
Julian Lam
97d7b57db3 nodebb executable integration for #5211 2016-11-16 21:18:51 -05:00
Julian Lam
881b381b8b fixes #4252, linting, and added ./nodebb slog 2016-11-09 10:25:23 -05:00
Julian Lam
c8bbbda22f added logic to catch bad installs
In cases where the nodebb executable is run before `npm i`, NodeBB
will now emit a friendly message instead of a scary one.
2016-04-25 12:20:29 -04:00
barisusakli
83d863f3db closes #4517 2016-04-15 16:07:56 +03:00
Julian Lam
604373b5e4 fixing plugin checker which erroneously always returned success 2016-04-13 10:43:29 -04:00
Julian Lam
bb25c1b831 added back the OK on premature success 2016-03-16 11:36:28 -04:00
Julian Lam
13210a91e6 Fixed case where plugin upgrade checker crashed
... if no extraneous plugins were installed. Hooray for not
testing the null case!
2016-03-16 10:45:41 -04:00
Julian Lam
4f84ec31f6 fixes #4352 2016-03-11 11:12:20 -05:00
Julian Lam
dff947b325 Plugin updates via command line (closes #4336)
Squashed commit of the following:

commit 9e0d6438dadf645d0d82210631731786f35daf25
Author: Julian Lam <julian@designcreateplay.com>
Date:   Wed Mar 9 13:29:27 2016 -0500

    completed integration for plugin upgrade functionality via command line

commit 5a27a64a24bdf640bb5c7aaa47cc1d4932ce791c
Author: Julian Lam <julian@designcreateplay.com>
Date:   Mon Mar 7 14:47:57 2016 -0500

    WIP plugin upgrades for nodebb executable

commit 00d5303e33
Author: barisusakli <barisusakli@gmail.com>
Date:   Wed Mar 9 18:06:05 2016 +0200

    fix typo
2016-03-09 13:31:16 -05:00
psychobunny
92810527ea closes #4191 2016-02-23 13:23:09 -05:00
pichalite
157f0dbed1 remove "watch" from list of usage options 2016-01-10 01:03:26 -08:00
psychobunny
f702717e61 ./nodebb plugins for a list of plugins activated 2015-11-03 11:50:14 -05:00
Julian Lam
68c3f9d849 Squashed commit of the following:
commit 56582bc9eee5d81a01f42a28808b617b9c96873a
Author: Julian Lam <julian@designcreateplay.com>
Date:   Tue Oct 27 05:21:11 2015 -0400

    added missing template

commit 6462a1626e7d8d77210b6e10eace5c9214335f33
Author: Julian Lam <julian@designcreateplay.com>
Date:   Tue Oct 27 05:19:07 2015 -0400

    sitemap index

commit 3cfd56f1fbc8e03405dc394375bf5ff6eef21322
Author: Julian Lam <julian@designcreateplay.com>
Date:   Tue Oct 27 04:47:52 2015 -0400

    sitemap routes, controllers, and library methods for pages, categories, and topics

commit e58e07c0881bdbe16d503b4679b85f761b02163c
Author: Julian Lam <julian@designcreateplay.com>
Date:   Tue Oct 27 04:07:39 2015 -0400

    added groups to sitemap

commit 7ee584b632
Author: Julian Lam <julian@designcreateplay.com>
Date:   Tue Oct 27 01:43:06 2015 -0400

    If notification dropdown is double-clicked, all notifications are marked read

commit 488f147bef
Author: barisusakli <barisusakli@gmail.com>
Date:   Mon Oct 26 22:39:19 2015 -0400

    closes #3781

commit 5e1bd58a02
Author: barisusakli <barisusakli@gmail.com>
Date:   Mon Oct 26 22:28:30 2015 -0400

    closes #3782

commit 57d3980267
Author: barisusakli <barisusakli@gmail.com>
Date:   Mon Oct 26 22:16:08 2015 -0400

    closes #3790

commit 555c5b82da
Author: barisusakli <barisusakli@gmail.com>
Date:   Mon Oct 26 21:19:20 2015 -0400

    check user settings

commit 5454862c1c
Author: barisusakli <barisusakli@gmail.com>
Date:   Mon Oct 26 20:26:02 2015 -0400

    wait for all callbacks when creating tags

commit 051c5077eb
Merge: 839fd93 e0e04ef
Author: Barış Soner Uşaklı <barisusakli@gmail.com>
Date:   Mon Oct 26 09:54:12 2015 -0400

    Merge pull request #3792 from drlogout/master

    Fixed wrong method name in socket.io/groups.js from isAdmin to isAdmi…

commit e0e04ef892
Author: Christian Nolte <hello@noltech.net>
Date:   Mon Oct 26 14:50:32 2015 +0100

    Fixed wrong method name in socket.io/groups.js from isAdmin to isAdministrator

commit 839fd935ad
Author: barisusakli <barisusakli@gmail.com>
Date:   Sun Oct 25 21:54:35 2015 -0400

    add back thread tools filter

commit 37060bf1a3
Merge: 5820a19 bf918bd
Author: Barış Soner Uşaklı <barisusakli@gmail.com>
Date:   Sun Oct 25 18:13:06 2015 -0400

    Merge pull request #3787 from cubehouse/patch-1

    Upgrade script fails on some consoles

commit 5820a193f6
Author: barisusakli <barisusakli@gmail.com>
Date:   Sun Oct 25 17:04:46 2015 -0400

    closes #3789

commit 0d88d52557
Author: barisusakli <barisusakli@gmail.com>
Date:   Sun Oct 25 17:03:33 2015 -0400

    up theme

commit 9bc43ba5e1
Author: barisusakli <barisusakli@gmail.com>
Date:   Sun Oct 25 16:57:42 2015 -0400

    closes #3788

commit aafd4b6984
Author: barisusakli <barisusakli@gmail.com>
Date:   Sun Oct 25 15:56:17 2015 -0400

    closes #3786

commit bf918bd016
Author: James Holding <cubehouse@users.noreply.github.com>
Date:   Sun Oct 25 10:14:00 2015 +0000

    Upgrade script fails on some consoles

    The upgrade script errors/fails on some consoles if the stdout.columns isn't set (my console did this when upgrading a Docker instance of NodeBB).
    Checking for stdout.columns before using, falling back to a couple of spaces for slightly prettiness if we can't work out the console width.
2015-10-27 05:25:14 -04:00
Julian Lam
ae856395c3 Removing deendecy on touch, and no longer updating filemod time on package.json on upgrade 2015-09-24 12:05:45 -04:00
psychobunny
fbc484d3c9 nodebb --activate plugin-name 2015-09-16 19:25:05 -04:00
Julian Lam
c45e182bab Fix ./nodebb upgrade process to not use programmatic npm
- Closes #3451
- Apparently, programmatically invoking npm is like opening Pandora's
box. No thanks.
2015-08-18 16:46:51 -04:00
Julian Lam
42367a653c more .reset() calls 2015-07-08 18:52:10 -04:00
Julian Lam
704aeea3f1 hopefully fixing bug where @psychobunny's terminal turns yellow after upgrading 2015-07-08 18:47:31 -04:00
Julian Lam
f2bebb12c6 turns out "detached" isn't even an option, so I've removed it altogether
Conflicts:
	nodebb
2015-06-30 22:23:27 -04:00
Julian Lam
4a0bc1fb03 finished up executable rewrite, and prettified reset script output 2015-05-25 21:08:05 -04:00
Julian Lam
e6061810f9 updating nodebb executable so that it is a node script instead of bash script 2015-05-25 16:06:49 -04:00
Julian Lam
fc2efb0c83 added one more line to stdout when nodebb status is invoked, or nodebb web installer finishes 2015-05-25 14:48:01 -04:00
Julian Lam
073afe4db0 updated ./nodebb dev to match new loader.js behaviour 2015-05-06 21:43:41 -04:00
psychobunny
6771c3c74c added deprecation notice to ./nodebb watch 2015-02-24 17:53:31 -05:00
barisusakli
e22c13abd4 closes #2423 2014-12-21 14:07:45 -05:00
Julian Lam
0d6be40238 fixed #2406 2014-11-17 14:47:51 -05:00
Julian Lam
4125a087b5 closed #2349, removed use of deprecated -d flag in executable 2014-11-04 18:33:20 -05:00
Julian Lam
783481e644 Support for reloading nodebb via the nodebb executable 2014-11-04 18:33:20 -05:00
psychobunny
7243aebee0 fixed supervisor to ignore committed minified file 2014-10-02 17:55:30 -04:00