0.0.2 • Published 8 years ago

quiqupjs-native-plugin v0.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

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()