Skip to content

Commit

Permalink
refactor: update example app scripts and add env var types (#3180)
Browse files Browse the repository at this point in the history
  • Loading branch information
enesozturk authored Nov 1, 2024
1 parent 2338332 commit 2af6ac0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/vue-wagmi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"private": true,
"version": "1.2.0",
"scripts": {
"dev": "vite --port 3003",
"dev": "vite",
"build": "vite build",
"start": "vite preview --port 3003"
"start": "vite preview"
},
"dependencies": {
"@reown/appkit": "workspace:*",
Expand Down
9 changes: 9 additions & 0 deletions examples/vue-wagmi/src/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/// <reference types="vite/client" />

interface ImportMetaEnv {
readonly VITE_PROJECT_ID: string
}

interface ImportMeta {
readonly env: ImportMetaEnv
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"prebuild": "node scripts/inject-version.js",
"build:clean": "turbo run build:clean --filter={./packages/*}",
"build:sample-apps": "turbo run build --filter={./examples/*}",
"build:example:wagmi-cdn": "pnpm --filter @examples/html-wagmi-cdn build",
"build:example:vue-wagmi": "pnpm --filter @examples/vue-wagmi build",
"build:example:wagmi-cdn": "pnpm build; pnpm --filter @examples/html-wagmi-cdn build",
"build:example:vue-wagmi": "pnpm build; pnpm --filter @examples/vue-wagmi build",
"build": "turbo run build --filter={./packages/*} --concurrency=31",
"watch": "turbo run watch --filter={./packages/*,./packages/adapters/*} --concurrency=50 --continue",
"gallery": "turbo run dev --filter={./apps/gallery}",
Expand Down

0 comments on commit 2af6ac0

Please sign in to comment.