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

[FEATURE] - use ts-node instead build & start #40

Closed
gimox opened this issue Nov 23, 2017 · 9 comments
Closed

[FEATURE] - use ts-node instead build & start #40

gimox opened this issue Nov 23, 2017 · 9 comments
Assignees
Labels

Comments

@gimox
Copy link
Contributor

gimox commented Nov 23, 2017

what about use ts-node instead npm run build && npm run start on "serve" script?
It's more efficient and speedy.

@gimox
Copy link
Contributor Author

gimox commented Nov 24, 2017

this is my serve script:

"serve": "nodemon --exec ts-node -- ./src/server.ts",

@myflowpl
Copy link

myflowpl commented Dec 5, 2017

you should also check the ts-node-dev for live reload feature, it works grate for me, it's insanely fast, compiles only changed files, and uses unchanged from cache, just like webpack do

my serve script example:
"serve": "ts-node-dev --fast --respawn ./src/server.ts"

@gimox
Copy link
Contributor Author

gimox commented Dec 8, 2017

nodemon use ts-node . This is a standard, well tested and full working solution.
ts-node-dev is something new.. it's not related to ts-node.

@myflowpl
Copy link

myflowpl commented Dec 8, 2017

ok, i'll try nodemon with ts-node to see how it compares to ts-node-dev

ts-node-dev is also using ts-node inside, just adds the watch functionality, so far works good, so may be someone else, also wants to try it out.

@gimox
Copy link
Contributor Author

gimox commented Dec 9, 2017

I try it and my project crash with ts-node-dev. Work fine with ts-node and nodemon and tsc.
It ‘s not good

@thomrick
Copy link
Contributor

thomrick commented Dec 9, 2017

Hey guys !
serve command already use nodemon and ts-node.
I think we can close the issue

@gimox
Copy link
Contributor Author

gimox commented Dec 11, 2017

@thomrick this command is not for the cli but for the app generated

@thomrick thomrick changed the title [Feature] use ts-node instead build & start [FEATURE] - use ts-node instead build & start Dec 20, 2017
@thomrick
Copy link
Contributor

upgrade to 4.0.0 or 5.0.0 depends on the Nestjs major version you want to use.
Use the typescript-starter repo with ts-node
build and serve will next features

@olawalejuwonm
Copy link

Please which is recommended?

@nestjs nestjs locked as resolved and limited conversation to collaborators Jul 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants