Look at the Nuxt documentation to learn more.
Make sure to install dependencies:
npm install# Start dev server (auto-generates Storyblok types first)
npm run dev
# Start dev server with SSL proxy
npm run dev:ssl# Build for production
npm run build
# Generate static site
npm run generate
# Preview production build
npm run preview# Pull components and generate types
npm run sb:generate
# Pull component definitions only
npm run sb:components
# Generate TypeScript types only
npm run sb:types
# Login/logout of Storyblok CLI
npm run sb:login
npm run sb:logout# Check for lint errors
npm run lint
# Fix lint errors
npm run lint:fix# Remove build artifacts and dependencies
npm run nukeCheck out the deployment documentation for more information.
This project uses Commitlint with the Conventional Commits specification.
<type>(<scope>): <subject>
| Type | Description |
|---|---|
feat |
New feature |
fix |
Bug fix |
docs |
Documentation changes |
style |
Code style (formatting, semicolons, etc.) |
refactor |
Code refactoring (no feature/fix) |
perf |
Performance improvement |
test |
Adding/updating tests |
build |
Build system or dependencies |
ci |
CI/CD configuration |
chore |
Maintenance tasks |
# Features
git commit -m "feat: add carousel component"
git commit -m "feat(blog): add post filtering by author"
# Bug fixes
git commit -m "fix: resolve image dimension extraction"
git commit -m "fix(migration): decode HTML entities in titles"
# Documentation
git commit -m "docs: update README with setup instructions"
# Refactoring
git commit -m "refactor: simplify useStory composable"
# Dependencies/build
git commit -m "build: upgrade nuxt to v4.3.0"
# Chores
git commit -m "chore: regenerate storyblok types"
# Breaking changes
git commit -m "feat!: change API response format"- Use lowercase for the subject (no capital first letter)
- No period at the end
- Use imperative mood ("add" not "added" or "adds")
- Scope is optional but helpful for clarity