nuxt-swapi
v1.0.31
Published
A nuxt module for Star Wars API
Downloads
33
Readme
Module nuxt-swapi
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
- 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
- Add
nuxt-swapi
to themodules
section ofnuxt.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