Check out our documents on the governance of this project.
Extension can be built for both the Cardano mainnet and testnet:
- Localhost (recommended)
# build files to './dev'
$ npm run dev
- Mainnet
# build files to './build'
$ npm run build -- --env "mainnet"
- Testnet (not supported yet)
# build files to './build'
$ npm run build -- --env "testnet"
- Open new webpage with
chrome://extensions
- Turn on the developer mode (checkbox in the top right-hand corner)
- Press Load unpacked
- Select either
dev
orbuild
folder (depending whichnpm
command you ran)
Note: dev
should hot reload on code change
Debug builds are not maintained for Firefox as firefox rejects manifest files with non-https localhost
in them.
You can bypass this by manually adding the extension into your Firefox folder but this is kind of tedious.
I suggest instead installing the mainnet
build as it does not use localhost
. (through about:debugging
or about:addons
). See SETUP.md for how to makes the unittests pass.
You must run npm run test-prepare
before running the tests!
test-prepare
will BUILD the extension and then the tests will LOAD the extension.
Rerun test-prepare
anytime you make changes to the application itself. If you only change test files, you do not need to rerun it.
# flow
$ npm run flow
# lint
$ npm run eslint
# features (command to run all existing tests)
$ npm run test-e2e-chrome
# How to run one .feature file (One feature file = one covered component from youtrack)
$ npm run test-by-feature feature/wallet-creation.feature
# How to run one test.
$ npm run test-by-tag @it-10
We use Jest for unittests.
$ npm run jest