Comments (9)
Hey guys !
serve command already use nodemon and ts-node.
I think we can close the issue
from nest-cli.
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.
this is my serve script:
"serve": "nodemon --exec ts-node -- ./src/server.ts",
from nest-cli.
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.
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.
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.
@thomrick this command is not for the cli but for the app generated
from nest-cli.
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.
Please which is recommended?
from nest-cli.
Related Issues (20)
- Regression > Copying assets is broken on Windows devices
- Facing module unavailability error on changing the bundler to swc HOT 1
- odd behavior when the config file can't be read HOT 5
- Add remove command to delete a non-root project from monorepo and auto-update nest-cli.json HOT 2
- false-positive warning message for `@nestjs/schematics` HOT 1
- [Feature] - nestCLI option to generate Command and Events HOT 1
- Update gitignore to include more common files or folders HOT 5
- The `roodDir` compiler option not being respected when using SWC HOT 7
- add "compilerOptions.sourceMaps" option is nest-cli-json HOT 1
- Assets only works on top level project. HOT 1
- Clean up dependencies HOT 1
- Listing all the routes/endpoints with their types and middleware in project HOT 2
- Error cause is not logged in dev:watch mode HOT 1
- broken path in build output HOT 4
- CLI not work whit PowerShell HOT 3
- ERROR [I18nService] parsing translation error in 10.3.2 HOT 12
- Unable to upgrade to the latest version, node version is v16.20.2
- Add an option to skip testing and linting packages/configurations when creating a new project. HOT 2
- Class generator creating file inside non specified folder on Windows 11 HOT 4
- Critical Security Vulnerability in formidable version used by superagent and supertest HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nest-cli.