A CLI for scaffolding blocks for W|W Sanity + NextJS projects.
Install package as a dev dependency.
# npm
npm install -D @walltowall/blok
Usage:
# Create a new block
blok create CallToAction
- Clone this repository
- Install latest LTS version of Node.js
- Enable Corepack using
corepack enable
- Install dependencies using
pnpm install
- Run interactive tests using
pnpm dev
# Run Tests
pnpm test
# Build
pnpm prepack
# Publish
pnpm release
Published under MIT License.