-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hmr? (hot module reloading) #62
Comments
I'm not sure @EvolutionX-10 is here |
He's taking his long break I think |
Can we do it without him? |
need his permission as he's author. |
🤔 weren't you the owner? |
|
On users re typing into their editor, on saves, update their code and changes should be instant when testing |
Would it mean a restart? or No restarts? |
Unlike nodemon it wouldn’t restart. But nodemon also works idk
…On Thu, Jul 21, 2022 at 12:31 PM Evo ***@***.***> wrote:
Would it mean a restart? or No restarts?
—
Reply to this email directly, view it on GitHub
<#62 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASJS6O6JYUTYPPMC6NS52ULVVGCNHANCNFSM54IIYQPA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I’ve messed around with hmr with vite and honestly it’s one of the most
productive things I’ve used
On Thu, Jul 21, 2022 at 12:32 PM Jacob Nguyen ***@***.***>
wrote:
… Unlike nodemon it wouldn’t restart. But nodemon also works idk
On Thu, Jul 21, 2022 at 12:31 PM Evo ***@***.***> wrote:
> Would it mean a restart? or No restarts?
>
> —
> Reply to this email directly, view it on GitHub
> <#62 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ASJS6O6JYUTYPPMC6NS52ULVVGCNHANCNFSM54IIYQPA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Yep I've used hmr as well in a discord bot before, I loved it |
Yep, true, could tell typescript users to use the |
Also check #63 |
If you want you can create a branch and work on it, else I'll work on it by next week |
git fetch origin
git checkout feat/hmr |
POG, looking forward to return |
This comment was marked as off-topic.
This comment was marked as off-topic.
🥸
…On Sun, Jul 24, 2022 at 3:55 PM vKxni ***@***.***> wrote:
Ok cool guys
—
Reply to this email directly, view it on GitHub
<#62 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASJS6OYF7DB2DBHDG4OPNZTVVWUU5ANCNFSM54IIYQPA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Well just discovered hmr and nodemon near the same thing. nodemon is more for server side stuff while hmr is frontend. |
This feature could either be directly implemented in the |
A |
one part of Sern i want to keep is to keep customization and to not add any extra features that users may not want.
Individual command watchers is just inefficient and id rather have a whole directory being watched.
|
Now that you mentioned global plug-ins thing (which is probably what I wanted to do), it's better to apply that option. It's very likely some users will prefer nodemon over this watcher, since, sometimes, the user needs to hot reload other files outside the commands directory (a utils folder e.g). In addition, making it a plugin will reduce unnecessary and unwanted dependencies. (Because chokidar would be required, and some users will just not use the feature, increasing final bundle size) |
I also think that promoting plug-ins with that hmr one will make them look for more utilities plug-ins, create their own and contribute to existing ones. It's a nice way to a promote such an unique feature in handlers. |
Our main point is to avoid multiple bot relogins and restarts, and only dynamically reload the commands, making everything faster and using less bandwidth. We can even make a dev slash command |
reviving this, I want a convenient way of developing my bot without using ts-node or nodemon! |
It seems like the plug-ins API can't get us the commands yet, so we'll have to wait for that to happen |
yea some guy at the discord just asked for that |
Yea I did |
oh wait its you? |
oh yeah you are 💀 |
Lmfao |
@leonardobagi has been working on an experimental FileWatcher that may work |
That class starts the whole hmr thing, the only thing remaining is syncing the commands on discord. This could be easily done via a CommandsSyncer class I made for the sern-community bot. |
Most clis enable users with a watch command
Letting sern deal with this would be very convenient for users.
We could also just include it in the future with global plugins, once compatibility branch rolls around
The text was updated successfully, but these errors were encountered: