quiqupjs-native-plugin

0.0.2 • Public • Published

QuiqupJSPlugin

This template allows you to quickly scaffold plugins for QuiqupJS.

Setup

  1. Clone this repository and update relevant names in package.json (for npm)
  2. The entry point for your plugin is in src/index.js
  3. After creating your plugin, publish to NPM https://docs.npmjs.com/getting-started/publishing-npm-packages and install in parent project along with QuiqupJS

Use

The template example shows you how to override the clear() function inside the store module, you can however override the entire store and replace with your own custom implementation, as long as you follow the existing interface.

import * as QuiqupJS from 'quiqupjs'
import QuiqupJSPlugin from 'quiqupjs-plugin'

QuiqupJS.use(QuiqupJSPlugin())

QuiqupJS.store.add('kenny', 123)
QuiqupJS.store.clear()

Package Sidebar

Install

npm i quiqupjs-native-plugin

Weekly Downloads

0

Version

0.0.2

License

ISC

Last publish

Collaborators

  • quiqup