Nuxt Astrofy
A small module to enforce an island-first approach in nuxt 3
Quick Setup
- Add
@rigo-m/nuxt-astrofy
dependency to your project
# Using pnpm
pnpm add -D @rigo-m/nuxt-astrofy
# Using yarn
yarn add --dev @rigo-m/nuxt-astrofy
# Using npm
npm install --save-dev @rigo-m/nuxt-astrofy
- Add
nuxt-astrofy
to themodules
section ofnuxt.config.ts
export default defineNuxtConfig({
modules: ["nuxt-astrofy"],
});
That's it! You can now use Nuxt Astrofy 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