0.2.0 • Published 10 months ago

nuxt-pagescms v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Nuxt PagesCMS

npm version npm downloads License Nuxt

Nuxt integration of PagesCMS.

Features

  • 🥱 Zero config setup
  • 💪 Fully type safe usePagesFile and usePagesCollection
  • 🛡️ Auto-generated types for composables from .pages.yml
  • 🤗 Fully SSR and SSG friendly!

Usage

<script setup lang="ts">
const home = await usePagesFile("home"); // fully typed with only the files defined in .pages.yml

home.value; // fully typed based on the schema given in .pages.yml
</script>

Quick Setup

Install the module to your Nuxt application with one command:

npx nuxi module add nuxt-pagescms

That's it! You can now use Nuxt PagesCMS in your Nuxt app ✨

Contribution

Local development

# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch


# Release new version
npm run release
0.2.0

10 months ago

0.1.5

10 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago