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: Any plans for this to have a bin template for things like node servers? #1927

Closed
2 tasks done
DarrenBaldwin07 opened this issue Feb 4, 2025 · 2 comments
Closed
2 tasks done
Labels
status: waiting for author Needs an action taken by the original poster type: feature New enhancement or request

Comments

@DarrenBaldwin07
Copy link

Bug Report Checklist

Overview

could be missing something but i did not see an option for this in the template wizard -- great project though :)

Additional Info

No response

@DarrenBaldwin07 DarrenBaldwin07 added the type: feature New enhancement or request label Feb 4, 2025
@JoshuaKGoldberg
Copy link
Owner

Hey, thanks! I'm glad you're enjoying the project :)

There is a --bin option, but it's not mentioned by default in the template wizard:

For example, if you run npx create typescript-app@beta --bin "bin/index.js", your package.json would have the following added:

{
  "bin": "bin/index.js"
}

See also #1677 -> #1683. The template doesn't have anything around standardizing what that bin looks like. The contents of that file are up to you based on how you'd like to structure your API.

Is that what you're looking for?


I'll note, too, that the fact that you had to ask this question is a symptom of the docs not being great right now 😅. I'd really like to make a full website that better surfaces options like this and examples of repositories made with CTA. Tracked in #1175 & #1193.

@JoshuaKGoldberg JoshuaKGoldberg added the status: waiting for author Needs an action taken by the original poster label Feb 4, 2025
@DarrenBaldwin07
Copy link
Author

awesome! this is exactly what i wanted - thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting for author Needs an action taken by the original poster type: feature New enhancement or request
Projects
None yet
Development

No branches or pull requests

2 participants