Skip to content

Commit

Permalink
Replace parcel with browserify (#214)
Browse files Browse the repository at this point in the history
* replace parcel with browserify
* fix git lfs
* cleanup
  • Loading branch information
hewigovens authored Jan 31, 2022
1 parent 9118b36 commit 7cbc90c
Show file tree
Hide file tree
Showing 10 changed files with 11,497 additions and 23,515 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 12.x]
node-version: [14.x, 16.x]

steps:
- uses: actions/checkout@v1
Expand All @@ -24,7 +24,8 @@ jobs:

- name: npm install, build, and test
run: |
npm install web3
npm install
npm run build --if-present
npm run build
npm test
working-directory: src
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ Pods/
node_modules/
jspm_packages/
staging/
.parcel-cache/


# Android
.idea
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@ window.ethereum.isTrust

### iOS

TrustWeb3Provider is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
TrustWeb3Provider is available through SPM. To install it, simply add the following dependency to your `Package.swift`:

```ruby
pod 'TrustWeb3Provider', git: 'https://github.com/trustwallet/trust-web3-provider', tag: '<latest_tag>'
```swift
.package(name: "TrustWeb3Provider", url: "https://github.com/trustwallet/trust-web3-provider", .branch("master")),
```

Here is an example project located at `ios/TrustWeb3Provider.xcworkspace` to demonstrate how to use this provider.
Here is an example project located at `ios/TrustWeb3Provider.xcodeproj` to demonstrate how to use this provider.

### Android

Expand Down
4 changes: 2 additions & 2 deletions dist/trust-min.js
Git LFS file not shown
3 changes: 1 addition & 2 deletions src/.babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"presets": ["env"],
"plugins": []
"presets": ["@babel/preset-env"]
}
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class TrustWeb3Provider extends EventEmitter {
*/
enable() {
console.log(
'enable() is deprecated, please use window.ethereum.request({method: "eth_requestAccounts"}) instead.'
"enable() is deprecated, please use window.ethereum.request({method: \"eth_requestAccounts\"}) instead."
);
return this.request({ method: "eth_requestAccounts", params: [] });
}
Expand Down
180 changes: 0 additions & 180 deletions src/jest.config.js

This file was deleted.

Loading

0 comments on commit 7cbc90c

Please sign in to comment.