@board-game-toolbox/plugin-chwazi

1.0.0 • Public • Published

Board Game Toolbox Plugin Template

Plugin template for board-game-toolbox.

Altered from vite's react-ts template.

Quick Start

Upload Plugin

pnpm icon
npm publish

After publishing, you can load https://registry.npmjs.org/${your-project-name} to see the metadata.

Main Changes

Add required files

Add icon.png.

Use relative path in index.html

board-game-toolbox use react-native-webview to load plugins, according to its file lookup logic, links in index.html should be relative path like ./xxx instead of /xxx.

Add scripts

Some useful scripts are located in scripts folder.

For example, icon-to-base64.js resize your icon.png to 64x64 and generate base64 string to package.json, then metadata will contain enough info to show the icon.

/@board-game-toolbox/plugin-chwazi/

    Package Sidebar

    Install

    npm i @board-game-toolbox/plugin-chwazi

    Weekly Downloads

    0

    Version

    1.0.0

    License

    none

    Unpacked Size

    194 kB

    Total Files

    6

    Last publish

    Collaborators

    • gstarp