All information regarding contributing to and progressing ethjs-util module can be found in this document.
npm install --save @metamask/ethjs-util
git clone http://github.com/MetaMask/ethjs-util
npm install
npm test
npm run build
npm run lint
The build staging for this module is as follows:
- Cleanup
- Linting
- Testing
- Babel processing (output to lib)
- Webpack (output to dist)
- Webpack production (output to dist)
- Retest lib folder for babel processing solidity
- Report build stats
All module source code is found in the src directory. All module helper scripts can be found in the scripts folder. These will not need to be touched, and are purely configuration for this repository.
./ethjs-util
./.github
./dist
./lib
./tests
./internals
./webpack
./coverage
./docs
./src
./tests
Note, the ./lib dir is generated from the babel build staging. ./coverage is generated from the npm run tes:coverage script. All internals and helper scripts (i.e. webpack) are in ./internals. All distribution builds are in ./dist (usually a minified and unminified production build of the package).
Across all ethjs- repos, we enforce version hardening (i.e. "0.0.3" not "^0.0.3"). We want to reduce potential hazardous install changes from dependancies as much as possible to ensure package preformace, testing, security and design. Please make sure all your commits and PR's are version hardend if you are installing or removing new packages.
After build staging it is the lib folder which actually gets published to NPM. This allows for easy inclusion into other modules which may not use babel transpiling or which may not support es2015+.
ethjs requires you have:
nodejs-v 8.17.0+npm-v 6.0+
This is a requirement to run, test, lint and build this module.
All relevant changes are notated in the CHANGELOG.md file, moniter this file for changes to this repository.
Please help better the ecosystem by submitting issues and pull requests. We need all the help we can get to build the absolute best linting standards and utilities. We follow the AirBNB linting standard. Please read more about contributing to ethjs-util in the .github/CONTRIBUTING.md.
This project is licensed under the MIT license, Copyright (c) 2016 Nick Dodson. For more information see LICENSE.