Skip to content

webxdc/draw

Repository files navigation

Draw CI code style: prettier

A WebXDC app that allows to share draws.

draw draw

Download the latest version, attach to a Delta Chat (or other WebXDC-capable client) group and share your drawings!

Developing

Installing Dependencies

After cloning this repo for the first time, install dependecies:

pnpm i

Running tests

pnpm format:check
pnpm test

Testing the app in the browser

To test your work in your browser (with hot reloading!) while developing:

pnpm dev-mini
# Alternatively to test in a more advanced WebXDC emulator:
pnpm dev

Building

To package the WebXDC file:

pnpm build

To package the WebXDC with developer tools inside to debug in Delta Chat, set the NODE_ENV environment variable to "debug":

NODE_ENV=debug pnpm build

The resulting optimized .xdc file is saved in dist-xdc/ folder.

Releasing

To automatically build and create a new GitHub release with the .xdc file:

git tag -a v1.0.1
git push origin v1.0.1