Skip to content

Commit

Permalink
⬆️ Upgrade example to nuxt@3
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Jan 11, 2024
1 parent 59a4701 commit 96997ac
Show file tree
Hide file tree
Showing 7 changed files with 3,800 additions and 6,295 deletions.
34 changes: 10 additions & 24 deletions example/nuxt.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default {
export default defineNuxtConfig({
target: 'static',
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
meta: {
title: 'LikeCoin Wallet Connector Example',
htmlAttrs: {
lang: 'en'
Expand All @@ -16,34 +16,20 @@ export default {
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
},
babel: {
plugins: [
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-nullish-coalescing-operator',
],
},

// Global CSS: https://go.nuxtjs.dev/config-css
css: [
'../dist/style.css',
],

// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
{ src: '~/plugins/textEncoder' },
],

// Auto import components: https://go.nuxtjs.dev/config-components
components: true,

// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
],

// Modules: https://go.nuxtjs.dev/config-modules
modules: [
'@nuxtjs/vuetify',
'@invictus.codes/nuxt-vuetify',
],

// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
transpile: [
'@walletconnect',
'@web3modal',
],
}
}
});
19 changes: 7 additions & 12 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,18 @@
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start",
"generate": "nuxt generate"
"dev": "nuxi dev",
"build": "nuxi build",
"start": "nuxi start",
"generate": "nuxi generate"
},
"dependencies": {
"@cosmjs/stargate": "^0.28.10",
"core-js": "^3.19.3",
"nuxt": "^2.15.8",
"nuxt": "^3.9.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"vue": "^2.6.14",
"vue-server-renderer": "^2.6.14",
"vue-template-compiler": "^2.6.14",
"webpack": "^4.46.0"
"react-dom": "^18.2.0"
},
"devDependencies": {
"@nuxtjs/vuetify": "^1.12.3"
"@invictus.codes/nuxt-vuetify": "^0.3.0"
}
}
2 changes: 1 addition & 1 deletion example/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ import {
SigningStargateClient,
} from '@cosmjs/stargate';
import { LikeCoinWalletConnector, LikeCoinWalletConnectorMethodType } from '../../dist';
import { LikeCoinWalletConnector, LikeCoinWalletConnectorMethodType } from '../../dist/wallet-connector.esm';
export default {
data() {
Expand Down
4 changes: 0 additions & 4 deletions example/plugins/textEncoder.js

This file was deleted.

File renamed without changes.
10 changes: 0 additions & 10 deletions example/store/README.md

This file was deleted.

Loading

0 comments on commit 96997ac

Please sign in to comment.