Skip to content

Latest commit

 

History

History
74 lines (52 loc) · 1.75 KB

README.md

File metadata and controls

74 lines (52 loc) · 1.75 KB

build

VerifyPage - Chrome Browser Extension

You can install this extension from the Chrome-App-Store here. Current Version 1.2.7

This is a verification client for the micro-pkc https://github.com/inblockio/aqua-PKC it uses the CLI verification tool as an external dependency https://github.com/inblockio/aqua-verifier-js. If you want the latest build, or you want to build it yourself, follow the instructions given here.

Chrome Extension, TypeScript, HTML

Prerequisites

Includes the following

  • TypeScript
  • Webpack
  • React
  • Jest
  • Example Code
    • Chrome Storage
    • Options Version 2
    • content script
    • count up badge number
    • background

Project Structure

  • src/typescript: TypeScript source files
  • src/assets: static files
  • dist: Chrome Extension directory
  • dist/js: Generated JavaScript files

Setup

npm install

Build

npm run build

Build in watch mode to support troubleshooting

terminal

npm run watch

Load extension to chrome

Go to chrome://extensions and enable 'Developer Mode' on the upper right corner. Now you can load dist directory of our local extension, after you completed the build process.

You can also load a pre-build version of the extension.

Test

npx jest or npm run test

Troubleshooting

In npm v17.x we expect the following error while running npm run build:

Error: --openssl-legacy-provider is not allowed in NODE_OPTIONS

to solve it, put this in your .bashrc

export NODE_OPTIONS=--openssl-legacy-provider