@jogak/core
v1.2.0
Published
Core types, registry, and Vite plugin for Jogak — a lightweight Storybook alternative.
Maintainers
Readme
@jogak/core
Core types, registry, and Vite plugin for Jogak — a lightweight Storybook alternative.
Install
pnpm add @jogak/core
# or: npm i @jogak/core / yarn add @jogak/coreUsage
Vite plugin (dev/build)
// vite.config.ts
import { jogak } from '@jogak/core/vite'
export default defineConfig({
plugins: [react(), jogak()],
})Build-time codegen (host bundler embedding)
import { generateRegistryFile } from '@jogak/core/build'
await generateRegistryFile({
patterns: ['src/**/*.jogak.tsx'],
cwd: process.cwd(),
outFile: '.jogak/registry.ts',
})Registry / types
import { defaultRegistry } from '@jogak/core'
import type { JogakMeta, Jogak, RegistryEntry, ArgType } from '@jogak/core'See the main README for architecture, CLI, host embedding, and Storybook benchmarks.
- Repository: https://github.com/devclib/jogak
- Issues: https://github.com/devclib/jogak/issues
- License: MIT
