nuxt-pagescms
Nuxt PagesCMS
Features
- 🥱 Zero config setup
- 💪 Fully type safe
usePagesFileandusePagesCollection - 🛡️ 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
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.2.0 | ^3.0 | MIT | |
| 0.1.5 | ^3.0 | MIT | |
| 0.1.4 | ^3.0 | MIT | |
| 0.1.3 | ^3.0 | MIT | |
| 0.1.2 | ^3.0 | MIT | |
| 0.1.1 | ^3.0 | MIT | |
| 0.1.0 | ^3.0 | MIT |