Skip to content
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

refactor: update ready message #78

Merged
merged 3 commits into from
May 7, 2024
Merged

Conversation

Julien-R44
Copy link
Member

@Julien-R44 Julien-R44 commented May 2, 2024

The file system watcher message that appears when you start the Adonis server is no longer really appropriate now that we have HMR. Because we have a File System Watcher: disabled which is displayed when we are in HMR mode.

image

Looks weird

So I've changed the message. But not really sure of the words :

  • With nothing, it will display Mode: Non-Watching.
  • --watch will display: Mode: Watching
  • --hmr will display: Mode: HMR

image

if you guys have something better lemme know

@thetutlage
Copy link
Member

Watch Mode: Watching and Watch Mode: Non-Watching seems off. I think better naming will be.

  • Watch Mode: HMR
  • Watch Mode: Legacy
  • Watch Mode: None

@RomainLanz
Copy link
Member

Should we rename Legacy to something like Cold Restart or Restart?

@Julien-R44
Copy link
Member Author

Should we rename Legacy to something like Cold Restart or Restart?

I thought that too. But in fact, is there really still a use case or a specific moment when we're going to prefer --watch mode to --hmr?

I don't think so at the moment. o maybe Legacy actually makes sense

Julien-R44 added 2 commits May 7, 2024 22:29
--throw-deprecation will cause the test to fail since we are using ts-node, and ts-node use features that are deprecated with node 22
@Julien-R44 Julien-R44 merged commit ce295a2 into develop May 7, 2024
10 checks passed
@Julien-R44 Julien-R44 deleted the refactor/server-message branch May 7, 2024 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants