voorhoede / head-start

Base setup on top of headless services to help you quickly start a new website
ISC License
3 stars 0 forks source link

chore: generator scripts #82

Closed jbmoelker closed 7 months ago

jbmoelker commented 7 months ago

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

  1. Checkout this branch
  2. Run npm run create (or npm run create:api | block | component | page)
  3. Follow the prompts
  4. Check the generated files

Checklist

cloudflare-pages[bot] commented 7 months ago

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1090c8d
Status:⚡️  Build in progress...

View logs