Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add snaps-cli #72

Merged
merged 236 commits into from
Sep 8, 2021
Merged

Add snaps-cli #72

merged 236 commits into from
Sep 8, 2021

Conversation

rekmarks
Copy link
Member

@rekmarks rekmarks commented Sep 7, 2021

danjm and others added 30 commits July 23, 2019 13:41
Use yargs, add watch and serve commands, Quality-of-Life stuff
* refactor to use npm conventions
* add SES eval command
* update file/directory structure
* Move example to examples folder
* Add ping pong example
* Add BLS signer example
* move example deps to examples
* bugfixes
Get bls-signer to a working state
dependabot bot and others added 19 commits September 6, 2021 15:44
* Bump @metamask/eslint-config from 6.0.0 to 8.0.0

Bumps [@metamask/eslint-config](https://github.com/MetaMask/eslint-config) from 6.0.0 to 8.0.0.
- [Release notes](https://github.com/MetaMask/eslint-config/releases)
- [Commits](MetaMask/eslint-config@v6.0.0...v8.0.0)

---
updated-dependencies:
- dependency-name: "@metamask/eslint-config"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Manually fix lint issues, simplify config

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Erik Marks <[email protected]>
Refactors the package exports (i.e. the exports of the package manifest `main` file, which is `dist/cmds/index`) such that the complete command array is exported under the name `commandModules`, and every individual command handler is exported under its name. The default export is removed.
This PR reverts #131, and completely removes the `main` field from the package manifest. We don't actually want to maintain any contract with consumers regarding our command module exports! The CLI itself is the interface. Packages that want to programmatically invoke `snaps-cli` can use `execa` or the command line.
This renames the `./development` directory to `./scripts`, which is more in line with other repositories in our organization.
This PR adds a mock `request` method and all of the `EventEmitter` methods to the mock `wallet` provider object in `eval-worker.ts`. These were previously missing, and made it fail example snaps that should succeed.
@rekmarks rekmarks marked this pull request as draft September 7, 2021 07:20
@rekmarks rekmarks marked this pull request as ready for review September 7, 2021 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants