storyblok/monoblok
Tentang
The Storyblok OSS monorepo
Pengembangan web dan aplikasiPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- +1
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Asli
Monoblok
A monorepo that consolidates all JavaScript projects from the Storyblok organization. This project aims to centralize the development, maintenance, and contribution to Storyblok's ecosystem of SDKs and tools.
๐ฆ Packages
This monorepo contains the following official Storyblok SDKs and integrations:
Core SDKs
| Package | Description | Version | Downloads |
|---|---|---|---|
| @storyblok/js | Core JavaScript SDK for Storyblok | ||
| storyblok-js-client | JavaScript client for Storyblok's Content Delivery API | ||
| storyblok-cli | A powerful CLI tool to improve the DX of your Storyblok projects. | ||
| @storyblok/region-helper | A helper package to handle Storyblok APIs in different regions. |
Framework Integrations
| Package | Description | Version | Downloads |
|---|---|---|---|
| @storyblok/react | React SDK for Storyblok | ||
| @storyblok/vue | Vue SDK for Storyblok | ||
| @storyblok/nuxt | Nuxt SDK for Storyblok | ||
| @storyblok/svelte | Svelte SDK for Storyblok | ||
| @storyblok/astro | Astro SDK for Storyblok |
Utilities
| Package | Description | Version | Downloads |
|---|---|---|---|
| @storyblok/richtext | Rich Text Renderer for Storyblok |
๐ง Migration Status
This repository represents an ongoing migration from a polyrepo structure to a unified monorepo. While we're actively working on this transition, please note:
- All new development should be done in this repository
- Existing packages are being migrated gradually
- Some packages may still be in their original repositories during the transition
- We're working to ensure a smooth migration with minimal disruption
๐ ๏ธ Development
Prerequisites
- Node.js (v18 or later)
- pnpm (v10 or later)
- Git
Setup
Clone the repository:
git clone https://github.com/storyblok/monoblok.git cd monoblokInstall dependencies:
pnpm install
Package management
This repository uses pnpm workspaces (configured in the root package.json) for dependency
management.
# Install dependencies
pnpm install
# Add a dependency to a specific package
pnpm add <package> --filter @storyblok/react
# Run a script in a specific package
pnpm --filter @storyblok/react <script>
Tooling
Packages share a unified toolchain via Vite+ (vp CLI):
vp pack/vp buildfor bundling (tsdown / Vite under the hood)vp testfor testing (Vitest)vp lintfor linting (Oxlint via@storyblok/lint-config)vp fmtfor formatting (Oxfmt)
Framework-specific builders (Angular CLI, Nuxt module builder, svelte-package, Redocly) are kept where Vite+ doesn't apply.
Every package exposes the same canonical script names. See AGENTS.md for the full
table.
Common commands
NX orchestrates tasks across the monorepo with caching and affected-only execution:
# Build all packages (the blueprints are left out, CI builds the affected ones)
pnpm build
# Build a specific package
pnpm nx build @storyblok/react
# Run all tests (or affected only)
pnpm test
pnpm nx affected --target=test
# Lint, format, type-check the whole repo
pnpm lint
pnpm format
pnpm test:types
# Watch-build a single package while developing
pnpm --filter @storyblok/react dev
# Re-run a package's tests on change
pnpm --filter @storyblok/migrations test:watch
# Show the dependency graph
pnpm nx graph
For more advanced NX usage:
Repository administration
For repository administrators, the internal monoblok CLI helps manage the monorepo (license
checks, migration helpers, etc.). See tools/monoblok for details.
๐ Versioning
The packages in this repository follow Semantic Versioning. Before you upgrade a package to a new major version, read its migration guide in the Storyblok documentation.
๐ Contributing
We welcome contributions! Please see our Contributing Guide for details on:
- Code style and standards
- Pull request process
- Development workflow
- Testing requirements
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Links
Jelajahi proyek terkait
Memuatโฆ