@bluecoaster/nuxt-unleash
v0.1.2
Published
This module allows the use of Unleash feature flagging system into your Nuxt 3 app.
Downloads
189
Readme
Nuxt 3 Unleash Module
This module allows the use of Unleash feature flagging system into your Nuxt 3 app.
Features
- Uses the unleash-client SDK as the driving package for communications.
- Reactive feature flag reloading in your components
- Server-side (API) support
- Contextual features support
Quick Setup
Install the module to your Nuxt application with one command:
npx nuxi module add @bluecoaster/nuxt-unleash
Then add the options into your nuxt.config.ts
:
export default defineNuxtConfig({
modules: ["@bluecoaster/nuxt-unleash"],
unleash: {
url: "https://your-unleash-instance.com/unleash",
appName: "my-app-name",
instanceId: "YOUR_INSTANCE_ID_IF_REQUIRED",
},
});
That's it! You can now use Unleash in your Nuxt app ✨
Contribution
# 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