-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* migrate to pnpm * some fixes * simplify * some more adjustments
- Loading branch information
Showing
15 changed files
with
8,296 additions
and
7,233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,18 +15,21 @@ jobs: | |
build: [cjs, esm, umd] | ||
env: [development, production] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
node-version: '18' | ||
cache: yarn | ||
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
- run: yarn install --frozen-lockfile --check-files | ||
- run: yarn build | ||
version: 8.2.0 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'pnpm' | ||
cache-dependency-path: '**/pnpm-lock.yaml' | ||
- run: pnpm install --frozen-lockfile | ||
- run: pnpm build | ||
- name: Use React 17 for production test | ||
if: ${{ matrix.env == 'production' }} | ||
run: | | ||
yarn add -D [email protected] [email protected] @testing-library/[email protected] | ||
pnpm add -D [email protected] [email protected] @testing-library/[email protected] | ||
- name: Patch for DEV-ONLY | ||
if: ${{ matrix.env == 'development' }} | ||
run: | | ||
|
@@ -63,6 +66,6 @@ jobs: | |
NODE_ENV: ${{ matrix.env }} | ||
- name: Test ${{ matrix.build }} ${{ matrix.env }} | ||
run: | | ||
yarn test:ci | ||
pnpm test:spec | ||
env: | ||
NODE_ENV: ${{ matrix.env }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,17 +10,18 @@ jobs: | |
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
node-version: '18' | ||
cache: yarn | ||
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
- run: yarn install --frozen-lockfile --check-files | ||
- name: Test Build # we don't have any other workflows to test build | ||
run: yarn build | ||
- name: Test Default | ||
run: yarn test:ci | ||
version: 8.2.0 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'pnpm' | ||
cache-dependency-path: '**/pnpm-lock.yaml' | ||
- run: pnpm install --frozen-lockfile | ||
- run: pnpm build # we don't have any other workflows to test build | ||
- run: pnpm test:spec | ||
|
||
test_matrix: | ||
runs-on: ubuntu-latest | ||
|
@@ -52,16 +53,19 @@ jobs: | |
- devtools-skip: CI-MATRIX-NOSKIP | ||
react: 16.8.0 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8.2.0 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
cache: yarn | ||
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
- run: yarn install --frozen-lockfile --check-files | ||
node-version: 18 | ||
cache: 'pnpm' | ||
cache-dependency-path: '**/pnpm-lock.yaml' | ||
- run: pnpm install --frozen-lockfile | ||
- name: Install legacy testing-library | ||
if: ${{ startsWith(matrix.react, '16.') || startsWith(matrix.react, '17.') }} | ||
run: yarn add -D @testing-library/[email protected] | ||
run: pnpm add -D @testing-library/[email protected] | ||
- name: Patch for React 16 | ||
if: ${{ startsWith(matrix.react, '16.') }} | ||
run: | | ||
|
@@ -73,5 +77,5 @@ jobs: | |
DEVTOOLS_SKIP: ${{ matrix.devtools-skip }} | ||
- name: Test ${{ matrix.react }} ${{ matrix.devtools-skip }} | ||
run: | | ||
yarn add -D react@${{ matrix.react }} react-dom@${{ matrix.react }} | ||
yarn test:ci | ||
pnpm add -D react@${{ matrix.react }} react-dom@${{ matrix.react }} | ||
pnpm test:spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,14 +28,17 @@ jobs: | |
- 4.2.3 | ||
- 4.1.5 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
node-version: '18' | ||
cache: yarn | ||
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
- run: yarn install --frozen-lockfile --check-files | ||
- run: yarn build | ||
version: 8.2.0 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'pnpm' | ||
cache-dependency-path: '**/pnpm-lock.yaml' | ||
- run: pnpm install --frozen-lockfile | ||
- run: pnpm build | ||
- name: Patch for Old TS | ||
run: | | ||
sed -i~ 's/\/\/ @ts-expect-error.*\[LATEST-TS-ONLY\]//' tests/*.tsx | ||
|
@@ -46,24 +49,13 @@ jobs: | |
sed -i~ 's/"zustand": \["\.\/src\/index\.ts"\],/"zustand": [".\/dist\/index.d.ts"],/' tsconfig.json | ||
sed -i~ 's/"zustand\/\*": \["\.\/src\/\*\.ts"\]/"zustand\/*": [".\/dist\/*.d.ts"]/' tsconfig.json | ||
sed -i~ 's/"include": .*/"include": ["src\/types.d.ts", "dist\/**\/*", "tests\/**\/*"],/' tsconfig.json | ||
yarn json -I -f package.json -e "this.resolutions={}; this.resolutions['@types/node']='18.13.0';" | ||
yarn add -D @types/[email protected] | ||
pnpm json -I -f package.json -e "this.resolutions={}; this.resolutions['@types/node']='18.13.0';" | ||
pnpm add -D @types/[email protected] | ||
- name: Install old TypeScript | ||
run: yarn add -D typescript@${{ matrix.typescript }} | ||
run: pnpm add -D typescript@${{ matrix.typescript }} | ||
- name: Patch testing setup for Old TS | ||
if: ${{ matrix.typescript == '4.4.4' || matrix.typescript == '4.3.5' || matrix.typescript == '4.2.3' || matrix.typescript == '4.1.5' }} | ||
run: | | ||
rm node_modules/@vitest/expect/dist/*.d.ts | ||
echo "declare module '@vitest/expect'" >> ./src/types.d.ts | ||
rm node_modules/@vitest/runner/dist/*.d.ts | ||
echo "declare module '@vitest/runner'" >> ./src/types.d.ts | ||
rm node_modules/@vitest/spy/dist/*.d.ts | ||
echo "declare module '@vitest/spy'" >> ./src/types.d.ts | ||
rm node_modules/@vitest/utils/dist/*.d.ts | ||
echo "declare module '@vitest/utils'" >> ./src/types.d.ts | ||
rm node_modules/vite-node/dist/*.d.ts | ||
echo "declare module 'vite-node'" >> ./src/types.d.ts | ||
rm node_modules/vitest/dist/*.d.ts | ||
echo "declare module 'vitest'" >> ./src/types.d.ts | ||
pnpm add -D [email protected] @vitest/[email protected] @vitest/[email protected] | ||
- name: Test ${{ matrix.typescript }} | ||
run: yarn tsc --noEmit | ||
run: pnpm test:types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,6 @@ $RECYCLE.BIN/ | |
.DS_Store | ||
.vscode | ||
.docz/ | ||
package-lock.json | ||
pnpm-lock.yaml | ||
coverage/ | ||
.rpt2_cache/ | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,12 +9,14 @@ | |
"lint": "eslint src --ext js,jsx --report-unused-disable-directives --max-warnings 0", | ||
"preview": "vite preview" | ||
}, | ||
"packageManager": "[email protected]", | ||
"dependencies": { | ||
"@react-three/drei": "^9.78.2", | ||
"@react-three/fiber": "^8.13.7", | ||
"@react-three/postprocessing": "^2.14.13", | ||
"@types/three": "^0.155.0", | ||
"meshline": "^3.1.6", | ||
"postprocessing": "^6.35.4", | ||
"prism-react-renderer": "^2.0.6", | ||
"prismjs": "^1.29.0", | ||
"react": "^18.2.0", | ||
|
Oops, something went wrong.