Each new Block, Component, API or Page route requires a few files with some default plumbing. This PR adds generator scripts to scaffold these new Block, Component, API & page route files. This should help the consistency in the project and save developers some time.
Associated issue
N/A
How to test
Checkout this branch
Run npm run create (or npm run create:api | block | component | page)
Follow the prompts
Check the generated files
Checklist
[x] I have performed a self-review of my own code
[x] I have made sure that my PR is easy to review (not too big, includes comments)
I have added/updated tests to prove that my feature works (if not possible please explain why)
[x] I have made changes to the README and if the change affects the project setup (npm commands changed, new service added, environmental variable added)
I have added a decision log entry if the change affects the architecture or changes a significant technology
Changes
Each new Block, Component, API or Page route requires a few files with some default plumbing. This PR adds generator scripts to scaffold these new Block, Component, API & page route files. This should help the consistency in the project and save developers some time.
Associated issue
N/A
How to test
npm run create
(ornpm run create:api | block | component | page
)Checklist
I have added/updated tests to prove that my feature works (if not possible please explain why)I have added a decision log entry if the change affects the architecture or changes a significant technology