Max Leiter
6b852d14c8
Fix not overriding config options with -c
2021-06-22 00:00:41 -07:00
Reto Brunner
c5fcc5d72f
install: allow installation of local packages
...
It may not be desirable to host all plugins on npm, allow for local packages to
be installed given a package name with a `file:` prefix.
This is still more restrictive than what yarn would support but allows us to still
verify the thelounge compatibility by reading the package.json file.
`yarn add` messes up with local filepaths and generates a lockfile that is
"outdated" as far as any other yarn commands go, which makes them error out.
For some reason `yarn install` fixes that and hence we run that after an install.
Here's the diff of yarn.lock between the broken state after `yarn add file:$path`
and `yarn install`
--- yarn.lock.2.afterAdd 2021-06-02 00:10:52.365134018 +0200
+++ yarn.lock.3.afterinstall 2021-06-02 00:13:27.122760442 +0200
@@ -2194,7 +2194,7 @@
safe-buffer "^5.1.2"
yallist "^3.0.3"
-thelounge-plugin-shortcuts@/home/reto/sourcecode/thelounge-plugin-shortcuts:
+"thelounge-plugin-shortcuts@file:../../sourcecode/thelounge-plugin-shortcuts":
version "1.0.12"
dependencies:
thelounge "4.2.0"
The only thing it does is switch an absolute path to a relative one for whatever
reason.
2021-06-05 13:01:55 +02:00
Taavi Väänänen
e790a72e59
Make add
and reset
CLI commands scriptable
...
Add CLI options `--password` and `--save-logs` (for `add` only) in
order to make adding users and changing user passwords scriptable.
Closes #3913
2020-10-07 09:00:00 +03:00
Al McKinlay
86e570efb2
Add version support for packages.
2020-08-21 15:03:12 +01:00
Pavel Djundik
487a438f02
Replace all uses of fs-extra
with native methods
2020-03-22 20:42:16 +02:00
Pavel Djundik
881b3eda19
Run format after updating to prettier 2.0
2020-03-21 22:55:36 +02:00
Pavel Djundik
80b0e8ad12
Fix up commander changes
2020-03-15 14:00:02 +02:00
Pavel Djundik
8f15548770
Fix not being able to uninstall packages
2020-02-27 19:21:01 +02:00
Pavel Djundik
469fe577f2
Wrap stdout parsing from yarn into try/catch
2020-02-11 11:48:02 +02:00
Pavel Djundik
0c246f0bbe
Fix passing utf-8 to readFileSync
2020-01-01 01:11:04 +02:00
Pavel Djundik
99175bef82
Check if there are any packages installed in upgrade command
2019-12-30 19:28:28 +02:00
Pavel Djundik
c1920eb566
When updating user file, write to temp file first
2019-12-18 10:47:07 +02:00
Pavel Djundik
e3a2fa7dd1
Create packages/package.json on server start
2019-12-14 20:48:25 +02:00
Pavel Djundik
24e41327a3
Provide fake $HOME env to Yarn commands
2019-12-13 17:45:10 +02:00
Pavel Djundik
db4b292a38
Remove code that aided upgrade to v3
2019-12-02 12:10:17 +02:00
Pavel Djundik
1410256e42
Merge pull request #3489 from thelounge/xpaw/fix-3221
...
Enable some user commands for LDAP
2019-11-11 12:01:48 +02:00
Tim Miller-Williams
19d8178606
Add webpack hot module reloading for development
...
Co-Authored-By: Tim Miller-Williams <timmw@users.noreply.github.com>
2019-11-08 15:02:44 +02:00
Pavel Djundik
e58a895293
Enable some user commands for LDAP
...
Fixes #3221
2019-11-01 13:37:32 +02:00
Pavel Djundik
e09599aeae
Fix running commands
2019-11-01 12:51:57 +02:00
Pavel Djundik
41e5090fb0
Do not crash on first run due to config.js not existing
2019-10-22 15:00:05 +03:00
Pavel Djundik
5d13e4c97d
Check config owner synchronously
...
Fixes async warning printing during prompt when adding a user
2019-09-24 22:06:04 +03:00
Pavel Djundik
4753d58c0b
Display an error on unknown command
2019-08-12 11:03:52 +03:00
Alistair McKinlay
20816d509d
Add check for outdated packages, and show on the help screen.
2019-07-19 13:33:09 +01:00
Alistair McKinlay
133e7bf710
Format js/vue with prettier
2019-07-19 11:27:40 +01:00
Pavel Djundik
295b3a4251
Correctly parse numbers when passed in CLI
...
Fixes #3295
2019-07-12 10:56:19 +03:00
Pavel Djundik
1425130436
Update eslint and eslint-plugin-vue, fix rules
2019-06-25 11:51:47 +03:00
Pavel Djundik
a9e774b13b
Print a warning when running as root
2019-05-20 18:17:35 +03:00
Pavel Djundik
7c1efb18d1
Print a warning on invalid keys in config
2019-03-05 13:49:50 +02:00
Pavel Djundik
c870545b46
Use require.resolve for yarn
2019-01-24 18:52:15 +02:00
Pavel Djundik
6937e6e772
Set yarn cache folder in the packages folder
...
Fixes thelounge/thelounge-docker#71
2019-01-16 12:51:52 +02:00
Pavel Djundik
e033010841
Rename manifest.json to thelounge.webmanifest
...
This makes express serve it with correct content-type of application/manifest+json
Refs:
- https://w3c.github.io/manifest/#media-type-registration
- https://webhint.io/docs/user-guide/hints/hint-manifest-file-extension/
2018-11-13 13:33:25 +02:00
Pavel Djundik
d9abe9224e
Warn if config owner doesn't match process uid
2018-06-19 17:18:06 +03:00
Pavel Djundik
472d618033
Remove log
from global
2018-06-15 23:31:06 +03:00
Jake Walker
cd81a2bcec
Added upgrade command
...
Using suggested changes
Changes suggested by astorije
Upgrade parameter removed and allow multiple packages to upgrade
Fixed
Minor fix
2018-04-29 08:47:39 +01:00
Pavel Djundik
f7d34739b5
Make a separate function to execute yarn commands; fallback to global yarn
...
Fixes #2301
Fixes #2348
2018-04-24 21:38:54 +03:00
Jérémie Astori
d6e6dab565
Fix a forgotten npm reference
2018-04-06 12:52:53 +03:00
Ben Harris
56004ec338
catch stderr from yarn subprocess, addresses #2301
2018-03-28 12:27:51 -04:00
Jérémie Astori
2954afd77d
Remove thelounge config
from the CLI
2018-03-11 14:36:57 -04:00
realies
a941fe97a6
Add install command support for package version
2018-03-07 19:59:03 +02:00
Jérémie Astori
9107f9e351
Merge pull request #2145 from thelounge/xpaw/chalk
...
Replace colors.js with chalk
2018-03-03 02:42:04 -05:00
Pavel Djundik
fee81e78e1
Replace colors.js with chalk
2018-03-02 20:28:54 +02:00
Pavel Djundik
eaf8c35f40
Warn about old config folder
2018-03-02 19:05:30 +02:00
Pavel Djundik
913e88185e
Change (un)install commands to use locally installed yarn
2018-02-20 11:28:14 +02:00
Pavel Djundik
c733e72e7a
Auto-fix code for padding-line-between-statements rule
2018-02-20 09:28:04 +02:00
Pavel Djundik
6c7ddd0f47
Merge pull request #1734 from thelounge/astorije/thelounge_home
...
Switch default home location to `~/.thelounge`
2018-02-19 20:54:57 +02:00
Pavel Djundik
51684f7a2a
Switch default home location to ~/.thelounge
and remove support of .lounge_home
2018-02-19 20:43:53 +02:00
Jérémie Astori
c7ad6d9d3d
Merge pull request #2077 from thelounge/astorije/rm-lounge-cli
...
Remove support for the `lounge` CLI (which was replaced with `thelounge`)
2018-02-19 13:27:47 -05:00
Jérémie Astori
69a4207ea4
Remove support for the lounge
CLI (which was replaced with thelounge
)
2018-02-19 13:14:14 -05:00
Pavel Djundik
a3e448acf5
Enable no-var rule
...
Fixes #1961
2018-02-19 19:49:39 +02:00
Pavel Djundik
2685f46669
Merge pull request #1834 from thelounge/astorije/rm-deprecated-options
...
Remove deprecated options for `thelounge start`
2018-02-19 19:10:14 +02:00