0.0.1 • Published 8 years ago
quiqupjs-plugin v0.0.1
QuiqupJSPlugin
This template allows you to quickly scaffold plugins for QuiqupJS.
Setup
- Clone this repository and update relevant names in package.json (for npm)
- The entry point for your plugin is in src/index.js
- 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()
0.0.1
8 years ago