-
Notifications
You must be signed in to change notification settings - Fork 65
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
Rethink templating #37
Comments
I'm happy to consider not having templates at all, some thoughts -
So... yeah. Maybe we shouldn't have templates? We could revisit this in the far future and add templating support when actual usecases arise (but it's harder to go the other way; adding template support now and pulling back later). |
Ha, you were the one that asked for them originally! ;D But, yes, I agree that we could avoid them entirely, and only add them back in if they're required. Or rather leave the code, but remove the I think the original desire for them was to add support for 'configuring CI on a repo' however if our aim is to avoid people creating lots of separate repos why try to simplify or automate a step that we want to happen as little as possible? Also, if that were required, perhaps a separate tool could be provided to do this. (Other stuff as you mention like the ability to use regular JS still works with this setup. And the need to add a different kind of widget is not of utmost importance right now.) |
I'm also a big fan of changing my mind when presented with new information :P Yeah, let's just remove the |
ref: #37 adding support for templates makes this implentation quite complex, and we're not solving an exisitng problem atm. Instead, we'll use the default template for now, and revisit when an actual need comes up. More context in the linked issue.
ref: #37 adding support for templates makes this implentation quite complex, and we're not solving an exisitng problem atm. Instead, we'll use the default template for now, and revisit when an actual need comes up. More context in the linked issue.
ref: #37 adding support for templates makes this implentation quite complex, and we're not solving an exisitng problem atm. Instead, we'll use the default template for now, and revisit when an actual need comes up. More context in the linked issue.
Leaving this open for a bit, will close by the end of the week if no new info presents itself. |
Closing this. |
Reopening this, since I think we now have some usecases popping up. Not for the main starting template, but for widgets. It remains to be seen whether this needs to be a --template option, or whether we ask questions after |
As prep for hosting multiple apps, this PR changes the commands from: ``` modular build modular start ``` to ``` modular build <path> modular start <path> ``` In the next PR, I'll change 'modular add' to ask a question to the user, which would then generate either an app, a widget, or a regular package. Combining the 2 PRs, we can then host multiple apps as described in #67, and possibly answer #37 too.
As prep for hosting multiple apps, this PR changes the commands from: ``` modular build modular start ``` to ``` modular build <path> modular start <path> ``` In the next PR, I'll change 'modular add' to ask a question to the user, which would then generate either an app, a widget, or a regular package. Combining the 2 PRs, we can then host multiple apps as described in #67, and possibly answer #37 too.
As prep for hosting multiple apps, this PR changes the commands from: ``` modular build modular start ``` to ``` modular build <path> modular start <path> ``` In the next PR, I'll change 'modular add' to ask a question to the user, which would then generate either an app, a widget, or a regular package. Combining the 2 PRs, we can then host multiple apps as described in #67, and possibly answer #37 too.
Took a call with this and we now have 3 'types' of packages, and it's still not something you can pass to the tool. Closing this again. |
I mentioned to @NMinhNguyen that I had a few misgiving when adding a templating feature.
Partly, the implementation is a little confusing right now due to the way we are piggy-backing on the installation of
create-react-app
. There are changes thatcreate-react-app
makes which are not part of its template and we then need to undo or amend. It'd be nicer if everything was just copied across from a single folder.More substantively, a
widget
is dependent on anapp
, so if the configuration of anapp
and verson ofmodular
installed doesn't include support for TypeScript you should not be able to install awidget
that depends on this. I'm not suggesting that we add validation -- probably it means that the template for a widget is stored within themodular
package (for now calledmodular-scripts
). This was brought up by @threepointone a week or so ago, and I'm writing it down now for posterity.Finally, there are now three templates (repo, app and widget). Currently, only
app
andwidget
are configurable, and we will likely wantrepo
to be configurable, too. (If/when this is required, it might need to support something like wizards.)The text was updated successfully, but these errors were encountered: