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

feat: hot reload in dev env #31

Merged
merged 1 commit into from
Mar 30, 2023

Conversation

Plyrs1
Copy link
Member

@Plyrs1 Plyrs1 commented Mar 30, 2023

so the way it works is using concurrently lib, that could run scripts concurrently.
when npm run start:dev executed, these happen in series:

  • delete dist/ folder if exist
  • npm run compile
    after that, two things happen in parallel:
  • npm run watch will execute tsc --watch, so any file changes in src/ will be built immediately into dist/ folder
  • npm run start will run, and if there is any change in dist/ folder, @sapphire/plugin-hmr kicks in and reload updated file / module.

@Plyrs1 Plyrs1 requested a review from satoufuyuki as a code owner March 30, 2023 18:23
@Plyrs1 Plyrs1 merged commit 40f6839 into animeworldid:main Mar 30, 2023
@Plyrs1 Plyrs1 deleted the Plyrs1-feat-hot-reload-dev branch March 30, 2023 19:33
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.

1 participant