You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dan Finlay
dd7e11d196
|
7 years ago | |
---|---|---|
app | 7 years ago | |
development | 8 years ago | |
docs | 8 years ago | |
mascara | 7 years ago | |
notices | 8 years ago | |
test | 7 years ago | |
ui | 7 years ago | |
.babelrc | 8 years ago | |
.dockerignore | 8 years ago | |
.editorconfig | 9 years ago | |
.eslintignore | 8 years ago | |
.eslintrc | 8 years ago | |
.gitattributes | 8 years ago | |
.gitignore | 7 years ago | |
.jshintrc | 9 years ago | |
.nvmrc | 8 years ago | |
.travis.yml | 9 years ago | |
.yo-rc.json | 9 years ago | |
CHANGELOG.md | 7 years ago | |
CONTRIBUTING.md | 9 years ago | |
Dockerfile | 8 years ago | |
LICENSE | 8 years ago | |
README.md | 8 years ago | |
USER_AGREEMENT.md | 8 years ago | |
circle.yml | 8 years ago | |
docker-compose.yml | 8 years ago | |
fonts | 8 years ago | |
gulpfile.js | 8 years ago | |
images | 8 years ago | |
mock-dev.js | 8 years ago | |
package.json | 7 years ago | |
testem.yml | 8 years ago | |
ui-dev.js | 8 years ago |
README.md
MetaMask Plugin
Developing Compatible Dapps
If you're a web dapp developer, we've got two types of guides for you:
- If you've never built a Dapp before, we've got a gentle introduction on Developing Dapps with Truffle and MetaMask.
- If you have a Dapp, and you want to ensure compatibility, here is our guide on building MetaMask-compatible Dapps
Building locally
- Install Node.js version 6.3.1 or later.
- Install local dependencies with
npm install
. - Install gulp globally with
npm install -g gulp-cli
. - Build the project to the
./dist/
folder withgulp build
. - Optionally, to rebuild on file changes, run
gulp dev
. - To package .zip files for distribution, run
gulp zip
, or run the full build & zip withgulp dist
.
Uncompressed builds can be found in /dist
, compressed builds can be found in /builds
once they're built.
Running Tests
Requires mocha
installed. Run npm install -g mocha
.
Then just run npm test
.
You can also test with a continuously watching process, via npm run watch
.
You can run the linter by itself with gulp lint
.
Architecture
Development
npm install
npm start
Build for Publishing
npm run dist
Writing Browser Tests
To write tests that will be run in the browser using QUnit, add your test files to test/integration/lib
.
Other Docs
- How to add custom build to Chrome
- How to add custom build to Firefox
- How to develop a live-reloading UI
- Publishing Guide
- How to develop an in-browser mocked UI
- How to live reload on local dependency changes
- How to add new networks to the Provider Menu
- How to manage notices that appear when the app starts up
- How to generate a visualization of this repository's development