nuxt-feathers-pinia
The Nuxt module for Feathers Pinia
3,744
| Install | |
|---|---|
npm install nuxt-feathers-pinia |
|
| Latest Version: | 0.1.0 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Oct 24, 2023 |
| Links: | npm |
Maintainer: marshallswain
nuxt-feathers-pinia
The Nuxt module for Feathers Pinia
Installation
npm i feathers-pinia nuxt-feathers-pinia
Open nuxt.config.ts and add it to the modules:
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
modules: [
'@pinia/nuxt',
'nuxt-feathers-pinia',
],
// Allows you to put stores and models in their own folders
imports: {
dirs: [
'stores',
'models',
],
},
// Enable Nuxt Takeover Mode: https://nuxt.com/docs/getting-started/installation#prerequisites
typescript: {
shim: false,
},
// optional: https://vuejs.org/guide/extras/reactivity-transform.html
experimental: {
reactivityTransform: true,
},
})
API Overview
This module provides two features:
- A set of composables for working with Feathers-Pinia and Nuxt
- Enables auto-import for key Feathers-Pinia composables
Development
The Nuxt development playground seems to be broken as of Jan 1, 2023. Instead of using the playground, use the following instructions:
- just make the changes and run
npm packto get a.tgzfile. - copy the
.tgzfile into another project. - run
npm i ./path-to-file.tgz - see if it works.
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.1.0 | ^3.0 | MIT | |
| 0.0.3 | ^3.0 | MIT | |
| 0.0.2 | ^3.0 | MIT | |
| 0.0.1 | ^3.0 | MIT |