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

[Feat] Create Vue examples with ethers v6 and v5 #647

Merged
merged 6 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading