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

chore: enable features #2696

Closed
wants to merge 19 commits into from
Closed
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
31 changes: 31 additions & 0 deletions .github/workflows/pr_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
- V4
- V5
- main
- feat/bundle-size-check

permissions:
pull-requests: write

concurrency:
# Support push/pr as event types with different behaviors each:
Expand Down Expand Up @@ -56,6 +60,33 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

bundle_size:
runs-on: ubuntu-latest
name: Bundle size check
steps:
- name: checkout
uses: actions/checkout@v3

- uses: pnpm/action-setup@v4
name: Install pnpm

- name: setup-node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'pnpm'

- name: install
run: pnpm install

- name: build
run: pnpm build

- name: Running vite-size script
uses: glitch-txs/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

test:
runs-on: ubuntu-latest
continue-on-error: true
Expand Down
8 changes: 5 additions & 3 deletions examples/react-wagmi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,23 @@
"version": "5.0.10",
"scripts": {
"dev": "vite --port 3002",
"build": "vite build"
"build": "vite build",
"size": "pnpm run build && vite-size --react --externals wagmi viem @tanstack/react-query react react-dom"
},
"dependencies": {
"@tanstack/react-query": "5.24.8",
"@web3modal/wagmi": "workspace:*",
"react": "18.2.0",
"react-dom": "18.2.0",
"vite": "5.2.11",
"viem": "2.17.8",
"vite": "5.2.11",
"wagmi": "2.12.2"
},
"devDependencies": {
"@types/react": "18.2.62",
"@types/react-dom": "18.2.7",
"@vitejs/plugin-react": "4.2.1",
"vite": "5.2.11"
"vite": "5.2.11",
"vite-size": "0.0.4"
}
}
4 changes: 3 additions & 1 deletion examples/react-wagmi/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ createWeb3Modal({
themeVariables: {
'--w3m-color-mix': '#00DCFF',
'--w3m-color-mix-strength': 20
}
},
enableAnalytics: true,
enableOnramp: true
})

export default function App() {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"publish:alpha": "pnpm install; pnpm build; changeset publish --tag alpha",
"publish:beta": "pnpm install; pnpm build; changeset publish --tag beta",
"publish:canary": "pnpm install; pnpm build; changeset publish --tag canary",
"prepare": "husky"
"prepare": "husky",
"size": "pnpm --filter=./examples/react-wagmi size"
},
"devDependencies": {
"@changesets/changelog-github": "0.5.0",
Expand Down
Loading
Loading