Giter VIP home page Giter VIP logo

Comments (9)

thomrick avatar thomrick commented on April 28, 2024 2

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

from nest-cli.

myflowpl avatar myflowpl commented on April 28, 2024 1

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"

from nest-cli.

gimox avatar gimox commented on April 28, 2024

this is my serve script:

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

from nest-cli.

gimox avatar gimox commented on April 28, 2024

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.

from nest-cli.

myflowpl avatar myflowpl commented on April 28, 2024

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.

from nest-cli.

gimox avatar gimox commented on April 28, 2024

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

from nest-cli.

gimox avatar gimox commented on April 28, 2024

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

from nest-cli.

thomrick avatar thomrick commented on April 28, 2024

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

from nest-cli.

olawalejuwonm avatar olawalejuwonm commented on April 28, 2024

Please which is recommended?

from nest-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.