Ubilabs Debug Panel
Description
This is a library to easily implement a debug panel into your application.
Table of contents
Installation
npm install @ubilabs/ubilabs-debug-panel
Usage
Default import from @ubilabs/ubilabs-debug-panel
and call the constructor:
import DebugPanel from '@ubilabs/ubilabs-debug-panel';
const debugPanel = new DebugPanel();
Add your custom properties with the syntax:
debugPanel.add('Variable Name', () => {});
Examples
There is a simple example page that imports the debug-panel directly: https://ubilabs.github.io/ubilabs-debug-panel/. To run the example locally:
npm install
npm start
Publish
A publish happens automatically when a new version tag is being pushed:
npm version major|minor|patch
git push && git push --tags