Create and configure Storyblok component definitions using the TypeScript schema DSL. Use when the user wants to add a new component, define fields, set up content types or nestable blocks, or work with files in the schema/ directory.
Define Storyblok components as TypeScript files in schema/. Each file default-exports a call to contentType() or nestable() with a schema array of field types.
This package is published to the GitHub Package Registry.
Add a .npmrc to your project root:
@jimdrury:registry=https://npm.pkg.github.com
Then install:
npm install @jimdrury/storyblok-component-schema
Add to your .yarnrc.yml:
npmScopes:
jimdrury:
npmRegistryServer: https://npm.pkg.github.com
Then install:
yarn add @jimdrury/storyblok-component-schema
Create a .component-schema.yaml in your project root:
componentsDir: ./schema