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

Hot reload when dev mode #12

Closed
elontruong opened this issue Apr 26, 2022 · 4 comments · Fixed by #13
Closed

Hot reload when dev mode #12

elontruong opened this issue Apr 26, 2022 · 4 comments · Fixed by #13
Assignees
Labels
good first issue Good for newcomers

Comments

@elontruong
Copy link
Contributor

elontruong commented Apr 26, 2022

I think maybe use should add a package "concurrently" as devDependencies.
And change dev script like this to achieve Hot Reload as dev script.

PS: your command "yarn compile:watch" maybe wrong when include "src".

`"dev": "concurrently "yarn compile:watch" "yarn pre:dev"",

"pre:dev": "cross-env NODE_ENV=development nodemon --experimental-modules --es-module-specifier-resolution=node dist/index.js",

"compile:watch": "tsc --build --watch",`

@saisilinus saisilinus self-assigned this Apr 26, 2022
@saisilinus saisilinus added the good first issue Good for newcomers label Apr 26, 2022
@saisilinus
Copy link
Owner

Let me work on this ASAP

@saisilinus
Copy link
Owner

PS: your command "yarn compile:watch" maybe wrong when include "src".

Could you please elaborate on this

@saisilinus
Copy link
Owner

PS: your command "yarn compile:watch" maybe wrong when include "src".

Could you please elaborate on this

OK. I got it

@elontruong
Copy link
Contributor Author

PS: your command "yarn compile:watch" maybe wrong when include "src".
Could you please elaborate on this

OK. I got it

Github remove my "" character, dev script should look like this

Screen Shot 2022-04-26 at 21 53 37

saisilinus added a commit that referenced this issue Apr 26, 2022
add hot reloading to compile ts in watch mode while server is running

Hot reload when dev mode #12
@saisilinus saisilinus linked a pull request Apr 26, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants