Skip to content

Commit 7a361d2

Browse files
committed
checkpoint
1 parent 278bcb3 commit 7a361d2

File tree

29 files changed

+8596
-21609
lines changed

29 files changed

+8596
-21609
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,37 @@ jobs:
1111
- uses: actions/checkout@v3
1212
with:
1313
fetch-depth: '0'
14-
- uses: actions/setup-node@v3
14+
- uses: pnpm/action-setup@v2
15+
name: Install pnpm
16+
id: pnpm-install
1517
with:
16-
node-version: 16
17-
registry-url: https://registry.npmjs.org/
18-
cache: 'npm'
19-
- run: |
20-
npm i
18+
version: 7
19+
run_install: false
20+
env:
21+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
22+
23+
- name: Get pnpm store directory
24+
id: pnpm-cache
25+
shell: bash
26+
run: |
27+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
28+
env:
29+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
30+
31+
- uses: actions/cache@v3
32+
name: Setup pnpm cache
33+
with:
34+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
35+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
36+
restore-keys: |
37+
${{ runner.os }}-pnpm-store-
38+
39+
- name: Publish
40+
run: |
41+
pnpm install --no-frozen-lockfile
2142
git config --global user.name 'Tanner Linsley'
2243
git config --global user.email 'tannerlinsley@users.noreply.github.com'
23-
npm run cipublish
44+
pnpm cipublish
2445
env:
2546
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
2647
GH_TOKEN: ${{ secrets.GH_TOKEN }}

.github/workflows/pr.yml

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,35 @@ name: pr
22
on: [pull_request]
33
jobs:
44
test:
5-
name: 'Test (node ${{ matrix.node }})'
5+
name: 'Test'
66
runs-on: ubuntu-latest
7-
strategy:
8-
matrix:
9-
node: [16]
107
steps:
118
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
139
with:
14-
node-version: ${{ matrix.node }}
15-
- run: |
16-
npm i
17-
npm run build
18-
npm run test
10+
fetch-depth: '0'
11+
- uses: pnpm/action-setup@v2
12+
name: Install pnpm
13+
id: pnpm-install
14+
with:
15+
version: 7
16+
run_install: false
17+
18+
- name: Get pnpm store directory
19+
id: pnpm-cache
20+
shell: bash
21+
run: |
22+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
23+
24+
- uses: actions/cache@v3
25+
name: Setup pnpm cache
26+
with:
27+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
28+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
29+
restore-keys: |
30+
${{ runner.os }}-pnpm-store-
31+
32+
- name: Build & Test
33+
run: |
34+
pnpm install --no-frozen-lockfile
35+
pnpm build
36+
pnpm test

.github/workflows/size-comments.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

examples/react/basic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"private": true,
55
"scripts": {
6-
"dev": "vite",
6+
"dev": "vite --port=3000",
77
"build": "vite build",
88
"serve": "vite preview",
99
"start": "vite"

examples/react/custom-steps/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"private": true,
55
"scripts": {
6-
"dev": "vite",
6+
"dev": "vite --port=3000",
77
"build": "vite build",
88
"serve": "vite preview",
99
"start": "vite"

examples/react/custom-styles/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "dynamic",
33
"private": true,
44
"scripts": {
5-
"dev": "vite",
5+
"dev": "vite --port=3000",
66
"build": "vite build",
77
"serve": "vite preview",
88
"start": "vite"

examples/react/logarithmic-interpolator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"private": true,
55
"scripts": {
6-
"dev": "vite",
6+
"dev": "vite --port=3000",
77
"build": "vite build",
88
"serve": "vite preview",
99
"start": "vite"

examples/react/update-on-drag/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"private": true,
55
"scripts": {
6-
"dev": "vite",
6+
"dev": "vite --port=3000",
77
"build": "vite build",
88
"serve": "vite preview",
99
"start": "vite"

jest.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ const moduleNameMapper = {
2323
module.exports = {
2424
projects: [
2525
{
26-
displayName: 'ranger-core',
26+
displayName: 'ranger',
2727
testEnvironment: 'jsdom',
28-
testMatch: ['<rootDir>/packages/ranger-core/**/*.test.[jt]s?(x)'],
28+
testMatch: ['<rootDir>/packages/ranger/**/*.test.[jt]s?(x)'],
2929
setupFilesAfterEnv: [
3030
'<rootDir>/packages/virtual-core/__tests__/jest.setup.js',
3131
],

0 commit comments

Comments
 (0)