Skip to content

Commit

Permalink
Move to pnpm + microbundle (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpierre authored Oct 1, 2021
1 parent 61a72af commit 7600bc3
Show file tree
Hide file tree
Showing 20 changed files with 13,695 additions and 45,456 deletions.
11 changes: 0 additions & 11 deletions .github/dependabot.yml

This file was deleted.

19 changes: 17 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,28 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 6.16.0
run_install: |
- args: [--frozen-lockfile]
- name: Build use-nft
run: yarn install --immutable && yarn build --noStats
run: pnpm build

- name: Build website/
env:
VITE_INFURA_KEY: ${{ secrets.INFURA_KEY }}
run: cd website && yarn install --immutable && yarn build
run: cd website && pnpm install --frozen-lockfile && pnpm build

- name: Deploy
uses: JamesIves/[email protected]
Expand Down
20 changes: 16 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,23 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2

- name: Install dependencies
run: yarn install --immutable
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 6.16.0
run_install: |
- args: [--frozen-lockfile]
- name: Test
run: yarn test --ci --coverage --maxWorkers=2
run: pnpm test

- name: Build
run: yarn build --noStats
run: pnpm build
6 changes: 3 additions & 3 deletions examples/ethereum/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-spring": "^9.2.1",
"use-nft": "portal:../..",
"use-viewport": "git://github.com/aragon/use-viewport.git#commit=dd60132c8ab5c8f824e9dd08a7543a034c93141e",
"use-wallet": "git://github.com/bpierre/use-wallet.git#commit=f7063ae7d89d031f00b492cc766e84c4908da7e4"
"use-nft": "workspace:*",
"use-viewport": "git://github.com/aragon/use-viewport.git#dd60132c8ab5c8f824e9dd08a7543a034c93141e",
"use-wallet": "git://github.com/bpierre/use-wallet.git#f7063ae7d89d031f00b492cc766e84c4908da7e4"
},
"devDependencies": {
"@types/react": "^17.0.8",
Expand Down
Loading

0 comments on commit 7600bc3

Please sign in to comment.