-
Notifications
You must be signed in to change notification settings - Fork 10
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
init
scaffolding should prompt for installing common plugins (TypeScript and markdown)
#1270
Comments
init
scaffolding should prompt for installing common plugins (TS and markdown)init
scaffolding should prompt for installing common plugins (TypeScript and markdown)
There should also be some documentation in the website about using Typescript with Greenwood. Things like where you can import type definitions from for the various data structures so that you can take advantage of the type safety of typescript. If the project has any recommendations for tsconfig.json settings to maximize compatibility, or to avoid incompatibility, that should be noted. If there are recommendations for configuring Rollup or the any other part of the toolchain for the best user experience, that would be useful as well, even if only as an example. |
Yeah, good call outs and thanks for the feedback!
We actually have a new website launching next week which definitely aims to improve not only the overall presentation of Greenwood itself, but the Information Architecture, to make these sort of things more discoverable at a glance. In particular TypeScript will get a dedicated page / menu item on the side nav. Right now we do have some documentation related to our TypeScript plugin but its buried in a table of contents on a not so obvious page, and you can find our TS plugin README docs here
I think the main thing will be that as long as Greenwood's TS plugin support whatever recommendations the library you're using supports, that would our ideal place to be. For example, Lit has recommendations for using decorators in TS, and for sure for something like Lit, we can link out to their recommended settings.
For Rollup, we do offer a Greenwood plugin API for that, which you can check out here. If its just transformations you are looking for, in most cases it can probably be solved with a resource plugin. If its specific to CSS we do have a PostCSS plugin, or for JS we have a Babel plugin. Our next phase of work, once we have the new release and website behind us, will be to focus on overall "ecosystem compat", which would definitely include tasks like this, to better support TypeScript for Greenwood itself. |
Summary
Coming out of #1253, I think to continue making the Init scaffolding tool more valuable, we should add prompts to auto install / configure
Something like
Details
In addition, we should probably start prompting for an output directory, or at least defaulting to
We might also want to move the template prompt to a selector as well, just to keep the experience consistent.
The text was updated successfully, but these errors were encountered: