-
-
Notifications
You must be signed in to change notification settings - Fork 510
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
Generator improvements. #485
Comments
@bmulvihill and I are working on improving the generator process, so we'll take these into account. |
Yeah I actually noticed this too, we could have a simple command to scaffold this stuff when creating a new generator. ie This will set up all the necessary files so all you need to do is implement the actual generator methods. |
We might even want a different executable to handle something like this to prevent confusion, something like bin/scaffold EXERCISE_NAME |
Maybe, but look at adding the functionality to take an argument. This seems so closely tied to generate that it does not make sense to have a new executable. |
Another idea that could be considered if y'all really do not want a new command: Make the two cases mentioned above tolerant of the files not existing.
That said, something to scaffold the adding of a new exercise with generator seems useful - the lib file, the example.tt file, possibly appending it to config.json if possible (!). Back in the day it used to be more, you would have to add a bin/generate-#{slug}, thanks for getting rid of that step! |
Prefer to create .version on first use. That is a great thing... No example file warning is good, as well, a first exercise contributor would be lead to do the needful. |
Should now use the version number from canonical rather than the sha as is currently done in |
@kotp and I are working on a generator, and have noticed some pain points.
Edit: having finished the generator, I now realize that it could be either (or, for that matter, |
I think it should be |
What made you think this? Was it some documentation? Another test file?
Yeah the documentation needs to be improved. Thanks for the feedback @hilary Edit: I read through the documentation in the readme, and can now better understand why you were confused! |
One of the causes of my confusion was the inconsistency between |
Currently these ideas of @Insti are buried in a PR. I wanted to surface them here so they are easier to find...
|
TodoIn checklist form so we can track our progress.
|
Question: ".version should be updated to be the canonical_data version (e.g. 2.1.0) plus an x-ruby version. (3) e.g.: 2.1.0.3". Why do we want the x-ruby version? I'm assuming that the canonical data version is following semantic versioning. Understanding the role of the xruby version should (hopefully) make it possible to include it within the semver model. |
We can't change the x-common version just because we do something. If you want to use some other combination of symbols that is more semver compliant that is fine, just let me know what you want them to be. |
I guess I'm asking why we don't just use the canonical data version? At least for exercises without any additional ruby-specific tests. We could use semver for both and combine, where both are present. I'm just playing here, but an exercise with only canonical data might have a .version of
an exercise with both canonical data and xruby data might have a .version of
See also discussion from the CLI perspective: exercism/cli#362 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@petertseng found some things that could be improved while he was building a generator:
From: #484 (comment)
The text was updated successfully, but these errors were encountered: