Just clone the project, install deps and you are good to go:
git clone [email protected]:mintlayer/mojito-browser-extension.git
cd mojito-browser-extension
npm i
In the project directory, you can run:
Runs the app in the development mode. Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes. You may also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
Runs E2E tests with Playwright. This will run the tests in headless mode.
If you want to create new tests, you can have the visual Playwright interface. To do that, run:
npm run e2e:ui
.
If you want to debug existing tests, run:
npm run e2e:debug
.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
The build process generates a ext.zip
and a extFF.zip
files in the project's root directory. The first one should be used for Chromium based browsers, while the last is meant just for Firefox.
They can be imported in the browser as a developer extension on Mozilla Firefox. To test in Chomium-based browsers, you can point the build
directory as the unpacked extension
.
On public/index.html
there is a meta
tag named CSP
. This is tags render just in DEVELOPMENT mode. But it has no use in delevelopment mode.
The only purpose of that tag is to serve as a placeholder to the real Content-Security-Policy
meta tag, which will be inserted just on the build process for the final packages and the build
path.
This meta tag is needed to load properly all the external scripts, stylesheets, fonts, and images on the final product.
Check here what you should do, and the rules you should follow, to contribute to this project.