-
-
Notifications
You must be signed in to change notification settings - Fork 385
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
Docs on writing generators in TypeScript #839
Comments
I know it’s possible because of yeoman/environment#164. I know that environment lookup and yo command doesn’t lists ts generators. |
@emileindik The Microsoft Teams generator uses typescript you see how this project is set up there https://github.com/pnp/generator-teams |
Sorry my answer is very late, I discovered this issue just today. For clarification for future issue readers: yes it is possible to create a generator in typescript, however keep the following things in mind:
Hope this helps for future developers who want to create a generator in typescript |
For anyone looking for a quick start here is a template you could use to create new ts generators generator-typescript-template |
@jvanmelckebeke The way I solved it is to build to |
If you want to run a generator locally in a project, you can just use |
Yeah, I want this. All said, it's really annoying to have to manage a |
I too wish it was seamless UwU. |
Transferring over to the website repo as this is a docs request. Cheers! 🎩 |
...and now triaging as a maintainer: I'm in support of this in general. I don't think we need a full section of the site, but maybe just an FAQ in https://yeoman.io/learning/faq explaining that:
Also relevant: yeoman/generator-generator#248 would be helpful. |
Is it possible to use yeoman with typescript?
If so, are there any sample generators written in typescript that you could point me to?
The text was updated successfully, but these errors were encountered: