nuxt-swa
v0.6.0
Published
Nuxt module for Azure Static Web Apps
Downloads
367
Maintainers
Readme
Nuxt SWA Module
Provides Azure Static Web Apps features to your Nuxt apps.
Features
- 🔑 Authentication & Authorization
- 📐 Provide type for
nitro.azure.config
- 🗄️ Data API support
Quick Setup
- Add
nuxt-swa
dependency to your project
# Using pnpm
pnpm add -D nuxt-swa
# Using yarn
yarn add --dev nuxt-swa
# Using npm
npm install --save-dev nuxt-swa
- Add
nuxt-swa
to themodules
section ofnuxt.config.ts
export default defineNuxtConfig({
modules: [
'nuxt-swa'
]
})
That's it! You can now use Nuxt SWA Module in your Nuxt app ✨
Development
# Install dependencies
pnpm install
# Develop with the docs
pnpm dev
# Build module & docs
# Note: You need to purchase a Nuxt UI Pro license key and set it in the `NUXT_UI_PRO_LICENSE` environment variable.
pnpm build
# Run ESLint & Prettier
pnpm lint
# Run ESLint & Prettier (auto fix)
pnpm format
# Run Vitest
pnpm test