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

Add support for component template extension including js and ts #91

Closed
4 tasks done
jitiendran opened this issue May 6, 2023 · 2 comments
Closed
4 tasks done
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request p2-enhancement Significant enhancement to be developed wontfix This will not be worked on
Milestone

Comments

@jitiendran
Copy link
Member

Description

Not all the developers prefer tsx or jsx as template extension most of them also prefer it to be plain and simple as ts or js.

Suggested solution

Add support for ts and js in component generation and also make it to be customizable using template property in config file.

Alternative

No response

Additional context

No response

Validations

@jitiendran
Copy link
Member Author

[ Triaged ] Good to start the development 👍🏻

@jitiendran jitiendran added documentation Improvements or additions to documentation enhancement New feature or request p2-enhancement Significant enhancement to be developed and removed enhancement: pending triage labels May 6, 2023
@jitiendran
Copy link
Member Author

We cannot add support for js and ts along with jsx and tsx for component template because ts doesn't allow jsx template basically we can't write any jsx code inside a ts file. There is no problem with using js as react template.

So closing this ticket since we cannot give the support for ts as component template and for js recently most of the developers are using jsx instead of js to differentiate between react files and normal js files [It's still debated].

Refer:

@jitiendran jitiendran added the wontfix This will not be worked on label May 7, 2023
@jitiendran jitiendran added this to the v0.1.4 milestone May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request p2-enhancement Significant enhancement to be developed wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant