Skip to content

Commit

Permalink
[Feat] Create Vue examples with ethers v6 and v5 (#647)
Browse files Browse the repository at this point in the history
* update gitignore from react-ethers

* update package version from vue example

* create example appkit in vue w/ethers

* create example for appkit in vue for ethersv5

* update packages in vue examples
  • Loading branch information
rtomas authored Jul 23, 2024
1 parent 818a7ae commit 4484943
Show file tree
Hide file tree
Showing 30 changed files with 21,786 additions and 7 deletions.
1 change: 1 addition & 0 deletions dapps/web3modal/react-ethers/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

/node_modules
node_modules
dist
dist-ssr
Expand Down
1 change: 1 addition & 0 deletions dapps/web3modal/vue-ethers/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VUE_APP_PROJECT_ID=YOUR_PROJECT_ID
23 changes: 23 additions & 0 deletions dapps/web3modal/vue-ethers/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.DS_Store
node_modules
/dist


# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
24 changes: 24 additions & 0 deletions dapps/web3modal/vue-ethers/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# vue

## Project setup
```
yarn install
```

### Compiles and hot-reloads for development
```
yarn serve
```

### Compiles and minifies for production
```
yarn build
```

### Lints and fixes files
```
yarn lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
8 changes: 8 additions & 0 deletions dapps/web3modal/vue-ethers/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
],
plugins: [
'@babel/plugin-transform-private-methods',
]
}
19 changes: 19 additions & 0 deletions dapps/web3modal/vue-ethers/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "es5",
"module": "esnext",
"baseUrl": "./",
"moduleResolution": "node",
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
}
}
48 changes: 48 additions & 0 deletions dapps/web3modal/vue-ethers/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"name": "vue",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@web3modal/ethers": "^5.0.7",
"core-js": "3.37.1",
"ethers": "^6.13.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"vue": "3.4.31"
},
"devDependencies": {
"@babel/core": "7.12.16",
"@babel/eslint-parser": "7.12.16",
"@babel/plugin-transform-private-methods": "^7.24.7",
"@vue/cli-plugin-babel": "5.0.8",
"@vue/cli-plugin-eslint": "5.0.0",
"@vue/cli-service": "5.0.8",
"eslint": "7.32.0",
"eslint-plugin-vue": "8.0.3"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/vue3-essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "@babel/eslint-parser"
},
"rules": {}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead",
"not ie 11"
]
}
Loading

0 comments on commit 4484943

Please sign in to comment.