nuxt3-contentful
v0.0.1
Published
Nuxt Module for easy Contentful integration
Downloads
2
Readme
Nuxt 3 Contentful Module
[![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![License][license-src]][license-href] [![Nuxt][nuxt-src]][nuxt-href]
This is a Nuxt module for easy integration to Contentful
Features
Quick Setup
- Add
nuxt3-contentful-module
dependency to your project
# Using npm
npm install --save-dev nuxt3-contentful-module
- Add
nuxt3-contentful
to themodules
section ofnuxt.config.ts
export default defineNuxtConfig({
modules: [
'nuxt3-contentful'
]
})
That's it! You can now use Contentful in your Nuxt app ✨
Development
# Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Add Contentful settings
CONTENTFUL_SPACE_ID=<YOUR SPACE ID>
CONTENTFUL_ACCESS_TOKEN=<YOUR ACCESS TOKEN>
# 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