0.1.22 • Published 9 months ago

snap-tama1 v0.1.22

Weekly downloads
-
License
(MIT-0 OR Apache-...
Repository
github
Last release
9 months ago

snap-tama

This will be updated in the AM namespace for development purposes until it is ready to be viewed on the new Pixelmon-minigames organization repo

This snap runs the core logic of Pixelmon's tamagotchi-like minigame.

This snap was based off of the standard metamask snap template. The snap runs within the Metamask browser environment, and will prompt the user to install it from the specified NPM package where it is published (TBC).

Run locally

yarn start - runs the app on the default port :8080 which the frontend interface will read from when run locally.

Known Errors

On the browser console, you might get this error after adjusting snap.manifest.json: RPC Error: Failed to fetch Snap "local:http://localhost:8080": Invalid Snap manifest: manifest shasum does not match computed shasum. Run yarn fix-shasum to reload the shasum.

Publishing NPM package

Run yarn npm-release. It will execute the following steps:

  • Update version number in both package.json and snap.manifest.json
  • Run yarn fix-shasum
  • Run npm publish

You will need to give execution permissions to the shell script with chmod +x ./increment_versions.sh and run brew install jq in the terminal.

Unpublishing

Run npm unpublish <package_name>@<version>

Testing

The snap comes with some basic tests, to demonstrate how to write tests for snaps. To test the snap, run yarn test in this directory. This will use @metamask/snaps-jest to run the tests in src/index.test.ts.

Notes

  • Babel is used for transpiling TypeScript to JavaScript, so when building with the CLI, transpilationMode must be set to localOnly (default) or localAndDeps.
0.1.22

9 months ago

0.1.21

9 months ago

0.1.20

9 months ago

0.1.19

9 months ago

0.1.18

9 months ago

0.1.17

9 months ago

0.1.16

9 months ago

0.1.15

9 months ago

0.1.14

9 months ago

0.1.13

9 months ago

0.1.12

9 months ago

0.1.10

9 months ago

0.1.9

9 months ago

0.1.8

9 months ago

0.1.7

9 months ago

0.1.6

9 months ago

0.1.5

9 months ago

0.1.4

9 months ago

0.1.3

9 months ago

0.1.2

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago