1.0.1 • Published 9 months ago

@nvs-pinia/collection v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

Pinia Collection: collection 🍍

This repository contains Pinia store modules collection that is frequently used in NVS projects.

Installation

  1. Add Pinia to your project. Follow the guide here
  2. Add the client bundle to your project: npm i @nvs-pinia/client
  3. Add the netvlies pinia collection to your project: npm i @nvs-pinia/collection
  4. Create a compatible Pinia instance and provide custom options:
import { createApp } from 'vue';
import { usePiniaCollection } from '@nvs-pinia/client';

createApp({...}).use(usePiniaCollection({...}));
  1. Import the module(s) you need inside your script setup: import { useAuthentication } from '@nvs-pinia/collection';
  2. Use the imported module in the composition API or anywhere after initialization of Pinia. See the docs.

Usage of plugins without Pinia collection instance

By default, some of the plugins provided by this collection will be loaded on usage of usePiniaCollection. If you have a Pinia instance of your own and just want to use some of these plugins, insert the following:

import { createPinia } from 'pinia';
import { useAPI } from '@nvs-pinia/client';

const pinia = createPinia();

pinia.use({ store } => {
    store.$api = useAPI(...);
});

For more docs, follow the Pinia plugin guide

Contributing guide

  1. Clone this repo
  2. Make your changes and commit them according to our git commit format
  3. Submit PR and get it approved
  4. Merge PR to release/{MR Creation year}{MR creation month}{3 digit number} e.g. release/202206001
  5. Create new release with npm run release
  6. Merge release to main
1.0.1

9 months ago

1.0.0

1 year ago

1.0.0-alpha.6

1 year ago

1.0.0-alpha.5

1 year ago

1.0.0-alpha.4

1 year ago

1.0.0-alpha.3

1 year ago

1.0.0-alpha.2

1 year ago

1.0.0-alpha.1

1 year ago

1.0.0-alpha.0

1 year ago

0.1.0

1 year ago

0.0.1-alpha.11

1 year ago

0.0.1-alpha.10

1 year ago

0.0.1-alpha.9

1 year ago

0.0.1-alpha.8

1 year ago

0.0.1-alpha.7

1 year ago

0.0.1-alpha.6

1 year ago