Skip to content

A little Node script to generate a new Sanity module file, insert it into the schema index, add it to your builder array. You're welcome!

Notifications You must be signed in to change notification settings

MichaelPrecel/Create-Sanity-Module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Create-Sanity-Module

A little Node script to generate a new Sanity module file, insert it into the schema index, add it to your builder array. You're welcome!

This script makes some assumptions:

  • Your schemas live in the root of your project in a folder called "schemas"
  • The index.ts file for your schemas is found at schemas/index.ts
  • Your module schemas are found at schemas/modules/
  • You have VS Code's CLI installed (to open the file after creating it)

Example node createBuilderModule.js whatever-you-like

About

A little Node script to generate a new Sanity module file, insert it into the schema index, add it to your builder array. You're welcome!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published