feat(create-gen-app): replace .questions.json with .boilerplate.json format #23
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR replaces the legacy
.questions.json/.jsconfiguration format with the new.boilerplate.json/.jsformat for template scaffolding. It also switches tests to use a dedicated testing boilerplate repository for isolation.Key changes:
.questions.jsonand.questions.jsfiles.boilerplate.jsonand.boilerplate.jsas the new configuration format.boilerplate.json,.boilerplate.js, and.boilerplates.jsonfrom being copied to generated outputpgpm-boilerplates(production) topgpm-boilerplates-testingUpdates since last revision
create-gen-app-testsnapshots to reflect that.boilerplate.jsonis now correctly excluded from generated outputtest:watchscript change in the testing boilerplate repo (jest --watch→jest --watchAll)Review & Testing Checklist for Human
https://github.com/constructive-io/pgpm-boilerplates-testing.gitis set up and has the expected template structuretemplate-scaffold.tsin constructive reads.boilerplate.jsondirectly - verify it still works with these changespgpm initwith a template that uses.boilerplate.jsonto verify end-to-end functionality.questions.json: Since this is a breaking change, ensure all boilerplate repos have been migratedRecommended test plan:
pgpm init workspacepgpm initusing a template from the boilerplates repo.boilerplate.jsonor.boilerplates.jsonfilesNotes
.questions.jsonLink to Devin run: https://app.devin.ai/sessions/718276b3817a4c70831019b07be99855
Requested by: Dan Lynch (@pyramation)