Skip to content

Commit

Permalink
chore: switch to pnpm (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 authored Jan 19, 2022
1 parent 61d0296 commit a273f67
Show file tree
Hide file tree
Showing 10 changed files with 8,157 additions and 27,247 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,36 +25,48 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6

- name: Set node version to ${{ matrix.node_version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
cache: 'npm'
cache: 'pnpm'

- name: Install deps
run: npm ci
run: pnpm install

- name: Build
run: npm run build
run: pnpm run build

- name: Test
run: npm run test
run: pnpm run test

lint:
runs-on: ubuntu-latest
name: 'Lint: node-16, ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6

- name: Set node version to 16
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'npm'
cache: 'pnpm'

- name: Install deps
run: npm ci
run: pnpm install

- name: Lint
run: npm run lint
run: pnpm run lint
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,7 @@ REVISION
.history

/lib

# Invalid project lock files
package-lock.json
yarn.lock
1 change: 0 additions & 1 deletion .npm/package/.gitignore

This file was deleted.

7 changes: 0 additions & 7 deletions .npm/package/README

This file was deleted.

7 changes: 0 additions & 7 deletions .npm/package/npm-shrinkwrap.json

This file was deleted.

2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ doc/
examples/browser/js/
lib/
CHANGELOG.md
package-lock.json
pnpm-lock.yaml
3 changes: 2 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[build.environment]
NODE_VERSION = "16"
NPM_FLAGS = "--version" # prevent Netlify npm install
[build]
publish = "docs/.vitepress/dist"
command = "npm run build && npm run browser && npm run docs:build"
command = "npx pnpm i --store=node_modules/.pnpm-store && npm run docs:build:ci"
Loading

0 comments on commit a273f67

Please sign in to comment.