-
Notifications
You must be signed in to change notification settings - Fork 508
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
Support for running Node.js apps, officially? (vs. just building libraries) #654
Comments
Sorry I think you misunderstood something, that issue is a user error where the user was confused why there was no logging during
Per the docs, there is a You can probably just use |
My simple use case is similar to running lambads. This issue is, having just the following line in src/index.ts: console.log(`something`) It is not logged during But it logs on the console after running I wanted to see my console logs during
Yes, this is what I usually use. But I thought it'd be nice if I could just bootsrap a running app quickly using tsdx, instead of configuring package.json scripts, test, and tsconfig.json everytime. I understand this feature request might be out of scope for the library, and that's okay for me.. I just wanted to know. |
Ok, sure, that's the same user error as #478. You might be able to achieve something similar with But again, that'll probably be much slower and use much more memory than plain
Thanks for providing a use case. I think the use case is reasonable, but the key features of TSDX are unnecessary for that. Could make a far simpler library to just handle running Node.js apps. We could in the future support this and re-use code between the two I suppose. Creating a template for this could be possible too. There is also #238 around a similar topic. I won't say it's entirely out-of-scope, but it's enough so that it doesn't really have any priority, so I can't say this is on my roadmap at all |
Okay, thanks for the quick clarification. |
I understand this library is meant to help build other libraries in TypeScript.
However, besides missing
console
functions at the root level (#478), are there any limitations or reasoning for not running Node.js server apps using this?It'd be nice to have a zeo-confg setup for running Node.js apps too.
(As far as I can tell, running
node .
aftertsdx build
works well for running apps, even forconsole.log
at the root)The text was updated successfully, but these errors were encountered: