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

[Feature]: One-Click JavaScript Initialization Option Pls!! #855

Open
2 tasks
gowy222 opened this issue Nov 1, 2024 · 0 comments
Open
2 tasks

[Feature]: One-Click JavaScript Initialization Option Pls!! #855

gowy222 opened this issue Nov 1, 2024 · 0 comments

Comments

@gowy222
Copy link

gowy222 commented Nov 1, 2024

Describe the feature

Hi 👋

Thanks for all the great work on this project! I’ve encountered a bit of friction when setting up with JavaScript instead of TypeScript and wanted to propose a potential improvement.

Currently, when using Vite or Nuxt with npx shadcn-vue@latest init, JavaScript users have to:

  1. Manually configure and convert the setup from TypeScript to JavaScript (renaming files, removing tsconfig.json, and stripping type annotations).
  2. Only then can they proceed with npx shadcn-vue@latest init.

Feature Suggestion

Would it be possible to add an option for JavaScript-only initialization directly in the npx shadcn-vue@latest init command? This could work with a flag like --js, which would:

  • Set up the project with JavaScript files instead of TypeScript.
  • Automatically handle the Vite or Nuxt initialization without requiring users to manually convert TypeScript files to JavaScript.

This option would make the process more straightforward for JavaScript users, allowing them to get started without manual conversion steps and reducing potential configuration errors.

Thanks for considering this improvement! Looking forward to any thoughts on making this setup more JavaScript-friendly.

Additional information

  • I intend to submit a PR for this feature.
  • I have already implemented and/or tested this feature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant