0.0.1 • Published 2 months ago

nuxt3-contentful v0.0.1

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

Nuxt 3 Contentful Module

npm version npm downloads License Nuxt

This is a Nuxt module for easy integration to Contentful

Features

Quick Setup

  1. Add nuxt3-contentful-module dependency to your project
# Using npm
npm install --save-dev nuxt3-contentful-module
  1. Add nuxt3-contentful to the modules section of nuxt.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