POC of decentralized NPM that runs on blockchain
- Launch gamma server:
npm run gamma:start
- Deploy contracts:
npm run gamma:deploy:owners
- Interact with the cli:
npm run cli -- <action>
Below is the list of supported actions. It specifies primary and secondary actions with parameters, if applicable.
E.g. npm run cli -- owner add react 0x123456779101213141
Primary Action | Secondary Action | Description |
---|---|---|
login |
Login creates a .npmrc with configuration or registry and user keys. |
|
owner |
Owner commands allow to interact with the list of owners per package. | |
ls <packageName> |
Lists of all owners for corresponding packageName . |
|
add <packageName> <userAddress> |
Adds the specified userAddress of a new user as an owner to the specified packageName |
|
rm <packageName> <userAddress> |
Removes the specified userAddress from the list of owners of specified packageName |
It runs all tests using jest including integration tests with gamma server.
Notice! Tests that are using gamma, due to its performace of start/stop of docker, are currently stateful, meaning that if you are changing the state of a contract, it persists to other tests in a suite.
It will run tests and generate coverage report.
MIT.