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

Is it possible to run a script using TSDX? #749

Closed
woss opened this issue Jun 21, 2020 · 3 comments
Closed

Is it possible to run a script using TSDX? #749

woss opened this issue Jun 21, 2020 · 3 comments
Labels
kind: support Asking for support with something or a specific use case problem: removed issue template OP removed the issue template without good cause

Comments

@woss
Copy link

woss commented Jun 21, 2020

Apart from the single entry point i would like to have a demo of the library as well. Is is possible to use tsdx like ts-node?

@agilgur5 agilgur5 added the problem: removed issue template OP removed the issue template without good cause label Jun 21, 2020
@PGA68

This comment has been minimized.

@agilgur5
Copy link
Collaborator

agilgur5 commented Jul 7, 2020

The issue template was removed here and the description is quite short, so it's difficult to tell what the intent here is.

Is your library a bin script? A demo wouldn't need to use ts-node as the library is already transpiled. Unless you're saying a demo of the app inside of a TypeScript application. In either case, it sounds like you'd want an example/ directory similar to the React template but modified for a script or a Node app instead.

This is outside the scope of TSDX the library but could be an idea for another template TSDX could have.

Is is possible to use tsdx like ts-node?

TSDX does not run your code per #478, it just builds the library (and can also test, lint, etc it). If you're looking to run a Node app instead of a Node library, then this would be a duplicate of #654 . It's unclear what the intent of that statement was, so I'm not sure how else to answer.

@agilgur5 agilgur5 closed this as completed Jul 7, 2020
@agilgur5 agilgur5 added the kind: support Asking for support with something or a specific use case label Jul 7, 2020
@agilgur5 agilgur5 changed the title Is it possible to run the script using tsdx? Is it possible to run a script using TSDX? Jul 7, 2020
@woss
Copy link
Author

woss commented Jul 8, 2020

@agilgur5 i think you answered perfectly. ✋ yes, the intent is to have something similar to the example folder, because so many time you want to test the lib before you actually build it.
Thanks for your time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: support Asking for support with something or a specific use case problem: removed issue template OP removed the issue template without good cause
Projects
None yet
Development

No branches or pull requests

3 participants