Skip to content

pierre10101/nuxt-swapi

Repository files navigation

Module nuxt-swapi

npm version npm downloads License Nuxt

Features

  • The project is typehinted so you can easily use the Star Wars API.
  • See the documentation for more information swapi
  • Full documentation to follow.

Quick Setup

  1. Add nuxt-swapi dependency to your project
# Using pnpm
pnpm add -D nuxt-swapi

# Using yarn
yarn add --dev nuxt-swapi

# Using npm
npm install --save-dev nuxt-swapi
  1. Add nuxt-swapi to the modules section of nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    'nuxt-swapi'
  ]
})

That's it! You can now use nuxt-swapi in your Nuxt app ✨

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