@techmely/nuxt-pinia-persist
v1.0.14
Published
Pinia Persist like Redux-Persist for Nuxt 3
Downloads
18
Readme
Nuxt partytown
My new Nuxt module for doing amazing things.
Features
- Lightweight - Just only import partytown lib
- Integrate with Partytown easy on Nuxt 3! Just need to focus on configs partytown
Quick Setup
- Add
@techmely/nuxt-pinia-persist
dependency to your project
# Using pnpm
pnpm add -D @techmely/nuxt-pinia-persist
# Using yarn
yarn add --dev @techmely/nuxt-pinia-persist
# Using npm
npm install --save-dev @techmely/nuxt-pinia-persist
- Add
@techmely/nuxt-pinia-persist
to themodules
section ofnuxt.config.ts
export default defineNuxtConfig({
modules: [
'@techmely/nuxt-pinia-persist'
]
})
- Enjoy
Development
# Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Copy public/partytown from this folder --> Playground
mkdir -p modules/nuxt-pinia-persist/playground/public/partytown
cp -R modules/nuxt-pinia-persist/public/partytown modules/nuxt-pinia-persist/playground/public/partytown
# 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