Skip to content

Commit 9c3ee80

Browse files
authoredJul 9, 2024··
ci: Add PR previews with pkg-pr-new (#751)
* Fix repository fields * Add preview job * Add renovate.json
1 parent 9f89211 commit 9c3ee80

File tree

9 files changed

+152
-110
lines changed

9 files changed

+152
-110
lines changed
 

‎.github/renovate.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended",
5+
"schedule:weekly",
6+
":approveMajorUpdates",
7+
":disablePeerDependencies",
8+
":semanticCommitTypeAll(chore)"
9+
],
10+
"labels": ["dependencies"],
11+
"rangeStrategy": "bump",
12+
"postUpdateOptions": ["pnpmDedupe"],
13+
"semanticCommits": "enabled",
14+
"packageRules": [
15+
{
16+
"groupName": "all non-major dependencies",
17+
"groupSlug": "all-minor-patch",
18+
"matchCurrentVersion": ">=1.0.0",
19+
"matchUpdateTypes": ["minor", "patch"]
20+
}
21+
],
22+
"ignoreDeps": ["@types/node", "node", "typescript"]
23+
}

‎.github/workflows/pr.yml

+14
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,17 @@ jobs:
3131
main-branch-name: main
3232
- name: Run Checks
3333
run: pnpm run test:pr
34+
preview:
35+
name: Preview
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Checkout
39+
uses: actions/checkout@v4
40+
with:
41+
fetch-depth: 0
42+
- name: Setup Tools
43+
uses: tanstack/config/.github/setup@main
44+
- name: Build Packages
45+
run: pnpm run build:all
46+
- name: Publish Previews
47+
run: pnpx pkg-pr-new publish --pnpm --compact './packages/*' --template './examples/*/*'

‎package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "virtual",
2+
"name": "root",
33
"private": true,
44
"repository": {
55
"type": "git",
@@ -36,7 +36,6 @@
3636
"test:sherif"
3737
]
3838
},
39-
"namespace": "@tanstack",
4039
"devDependencies": {
4140
"@tanstack/config": "^0.9.0",
4241
"@testing-library/jest-dom": "^6.4.6",

‎packages/lit-virtual/package.json

+18-17
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,29 @@
66
"license": "MIT",
77
"repository": {
88
"type": "git",
9-
"url": "git+https://github.com/tanstack/virtual.git"
9+
"url": "https://github.com/TanStack/virtual.git",
10+
"directory": "packages/lit-virtual"
1011
},
11-
"homepage": "https://github.com/tanstack/virtual#readme",
12+
"homepage": "https://tanstack.com/virtual",
1213
"funding": {
1314
"type": "github",
1415
"url": "https://github.com/sponsors/tannerlinsley"
1516
},
17+
"keywords": [
18+
"lit",
19+
"virtual",
20+
"virtual-core",
21+
"datagrid"
22+
],
23+
"scripts": {
24+
"clean": "rimraf ./dist && rimraf ./coverage",
25+
"test:eslint": "eslint ./src",
26+
"test:types": "tsc",
27+
"test:build": "publint --strict",
28+
"test:lib": "vitest",
29+
"test:lib:dev": "pnpm run test:lib --watch",
30+
"build": "vite build"
31+
},
1632
"type": "module",
1733
"types": "dist/esm/index.d.ts",
1834
"main": "dist/cjs/index.cjs",
@@ -31,21 +47,6 @@
3147
"./package.json": "./package.json"
3248
},
3349
"sideEffects": false,
34-
"scripts": {
35-
"clean": "rimraf ./dist && rimraf ./coverage",
36-
"test:eslint": "eslint ./src",
37-
"test:types": "tsc",
38-
"test:build": "publint --strict",
39-
"test:lib": "vitest",
40-
"test:lib:dev": "pnpm run test:lib --watch",
41-
"build": "vite build"
42-
},
43-
"keywords": [
44-
"lit",
45-
"virtual",
46-
"virtual-core",
47-
"datagrid"
48-
],
4950
"files": [
5051
"dist",
5152
"src"

‎packages/react-virtual/package.json

+20-19
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,31 @@
66
"license": "MIT",
77
"repository": {
88
"type": "git",
9-
"url": "git+https://github.com/tanstack/virtual.git"
9+
"url": "https://github.com/TanStack/virtual.git",
10+
"directory": "packages/react-virtual"
1011
},
11-
"homepage": "https://github.com/tanstack/virtual#readme",
12+
"homepage": "https://tanstack.com/virtual",
1213
"funding": {
1314
"type": "github",
1415
"url": "https://github.com/sponsors/tannerlinsley"
1516
},
17+
"keywords": [
18+
"react",
19+
"vue",
20+
"solid",
21+
"virtual",
22+
"virtual-core",
23+
"datagrid"
24+
],
25+
"scripts": {
26+
"clean": "rimraf ./dist && rimraf ./coverage",
27+
"test:eslint": "eslint ./src",
28+
"test:types": "tsc",
29+
"test:lib": "vitest",
30+
"test:lib:dev": "pnpm run test:lib --watch",
31+
"test:build": "publint --strict",
32+
"build": "vite build"
33+
},
1634
"type": "module",
1735
"types": "dist/esm/index.d.ts",
1836
"main": "dist/cjs/index.cjs",
@@ -31,23 +49,6 @@
3149
"./package.json": "./package.json"
3250
},
3351
"sideEffects": false,
34-
"scripts": {
35-
"clean": "rimraf ./dist && rimraf ./coverage",
36-
"test:eslint": "eslint ./src",
37-
"test:types": "tsc",
38-
"test:lib": "vitest",
39-
"test:lib:dev": "pnpm run test:lib --watch",
40-
"test:build": "publint --strict",
41-
"build": "vite build"
42-
},
43-
"keywords": [
44-
"react",
45-
"vue",
46-
"solid",
47-
"virtual",
48-
"virtual-core",
49-
"datagrid"
50-
],
5152
"files": [
5253
"dist",
5354
"src"

‎packages/solid-virtual/package.json

+18-17
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,29 @@
66
"license": "MIT",
77
"repository": {
88
"type": "git",
9-
"url": "git+https://github.com/tanstack/virtual.git"
9+
"url": "https://github.com/TanStack/virtual.git",
10+
"directory": "packages/solid-virtual"
1011
},
11-
"homepage": "https://github.com/tanstack/virtual#readme",
12+
"homepage": "https://tanstack.com/virtual",
1213
"funding": {
1314
"type": "github",
1415
"url": "https://github.com/sponsors/tannerlinsley"
1516
},
17+
"keywords": [
18+
"react",
19+
"vue",
20+
"solid",
21+
"virtual",
22+
"virtual-core",
23+
"datagrid"
24+
],
25+
"scripts": {
26+
"clean": "rimraf ./dist && rimraf ./coverage",
27+
"test:eslint": "eslint ./src",
28+
"test:types": "tsc",
29+
"test:build": "publint --strict",
30+
"build": "vite build"
31+
},
1632
"type": "module",
1733
"types": "dist/esm/index.d.ts",
1834
"main": "dist/cjs/index.cjs",
@@ -31,21 +47,6 @@
3147
"./package.json": "./package.json"
3248
},
3349
"sideEffects": false,
34-
"scripts": {
35-
"clean": "rimraf ./dist && rimraf ./coverage",
36-
"test:eslint": "eslint ./src",
37-
"test:types": "tsc",
38-
"test:build": "publint --strict",
39-
"build": "vite build"
40-
},
41-
"keywords": [
42-
"react",
43-
"vue",
44-
"solid",
45-
"virtual",
46-
"virtual-core",
47-
"datagrid"
48-
],
4950
"files": [
5051
"dist",
5152
"src"

‎packages/svelte-virtual/package.json

+19-18
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,30 @@
66
"license": "MIT",
77
"repository": {
88
"type": "git",
9-
"url": "git+https://github.com/tanstack/virtual.git"
9+
"url": "https://github.com/TanStack/virtual.git",
10+
"directory": "packages/svelte-virtual"
1011
},
11-
"homepage": "https://github.com/tanstack/virtual#readme",
12+
"homepage": "https://tanstack.com/virtual",
1213
"funding": {
1314
"type": "github",
1415
"url": "https://github.com/sponsors/tannerlinsley"
1516
},
17+
"keywords": [
18+
"react",
19+
"vue",
20+
"solid",
21+
"svelte",
22+
"virtual",
23+
"virtual-core",
24+
"datagrid"
25+
],
26+
"scripts": {
27+
"clean": "rimraf ./dist && rimraf ./coverage",
28+
"test:eslint": "eslint ./src",
29+
"test:types": "svelte-check --tsconfig ./tsconfig.json",
30+
"test:build": "publint --strict",
31+
"build": "svelte-package --input ./src --output ./dist"
32+
},
1633
"type": "module",
1734
"types": "dist/index.d.ts",
1835
"module": "dist/index.js",
@@ -26,22 +43,6 @@
2643
"./package.json": "./package.json"
2744
},
2845
"sideEffects": false,
29-
"scripts": {
30-
"clean": "rimraf ./dist && rimraf ./coverage",
31-
"test:eslint": "eslint ./src",
32-
"test:types": "svelte-check --tsconfig ./tsconfig.json",
33-
"test:build": "publint --strict",
34-
"build": "svelte-package --input ./src --output ./dist"
35-
},
36-
"keywords": [
37-
"react",
38-
"vue",
39-
"solid",
40-
"svelte",
41-
"virtual",
42-
"virtual-core",
43-
"datagrid"
44-
],
4546
"files": [
4647
"dist",
4748
"src"

‎packages/virtual-core/package.json

+20-19
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,31 @@
66
"license": "MIT",
77
"repository": {
88
"type": "git",
9-
"url": "git+https://github.com/tanstack/virtual.git"
9+
"url": "https://github.com/TanStack/virtual.git",
10+
"directory": "packages/virtual-core"
1011
},
11-
"homepage": "https://github.com/tanstack/virtual#readme",
12+
"homepage": "https://tanstack.com/virtual",
1213
"funding": {
1314
"type": "github",
1415
"url": "https://github.com/sponsors/tannerlinsley"
1516
},
17+
"keywords": [
18+
"react",
19+
"vue",
20+
"solid",
21+
"virtual",
22+
"virtual-core",
23+
"datagrid"
24+
],
25+
"scripts": {
26+
"clean": "rimraf ./dist && rimraf ./coverage",
27+
"test:eslint": "eslint ./src",
28+
"test:types": "tsc",
29+
"test:lib": "vitest",
30+
"test:lib:dev": "pnpm run test:lib --watch",
31+
"test:build": "publint --strict",
32+
"build": "vite build"
33+
},
1634
"type": "module",
1735
"types": "dist/esm/index.d.ts",
1836
"main": "dist/cjs/index.cjs",
@@ -31,23 +49,6 @@
3149
"./package.json": "./package.json"
3250
},
3351
"sideEffects": false,
34-
"scripts": {
35-
"clean": "rimraf ./dist && rimraf ./coverage",
36-
"test:eslint": "eslint ./src",
37-
"test:types": "tsc",
38-
"test:lib": "vitest",
39-
"test:lib:dev": "pnpm run test:lib --watch",
40-
"test:build": "publint --strict",
41-
"build": "vite build"
42-
},
43-
"keywords": [
44-
"react",
45-
"vue",
46-
"solid",
47-
"virtual",
48-
"virtual-core",
49-
"datagrid"
50-
],
5152
"files": [
5253
"dist",
5354
"src"

‎packages/vue-virtual/package.json

+19-18
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,33 @@
66
"license": "MIT",
77
"repository": {
88
"type": "git",
9-
"url": "git+https://github.com/tanstack/virtual.git"
9+
"url": "https://github.com/TanStack/virtual.git",
10+
"directory": "packages/vue-virtual"
1011
},
11-
"homepage": "https://github.com/tanstack/virtual#readme",
12+
"homepage": "https://tanstack.com/virtual",
1213
"publishConfig": {
1314
"registry": "https://registry.npmjs.org/"
1415
},
1516
"funding": {
1617
"type": "github",
1718
"url": "https://github.com/sponsors/tannerlinsley"
1819
},
20+
"keywords": [
21+
"react",
22+
"vue",
23+
"solid",
24+
"svelte",
25+
"virtual",
26+
"virtual-core",
27+
"datagrid"
28+
],
29+
"scripts": {
30+
"clean": "rimraf ./dist && rimraf ./coverage",
31+
"test:eslint": "eslint ./src",
32+
"test:types": "tsc",
33+
"test:build": "publint --strict",
34+
"build": "vite build"
35+
},
1936
"type": "module",
2037
"types": "dist/esm/index.d.ts",
2138
"main": "dist/cjs/index.cjs",
@@ -34,22 +51,6 @@
3451
"./package.json": "./package.json"
3552
},
3653
"sideEffects": false,
37-
"scripts": {
38-
"clean": "rimraf ./dist && rimraf ./coverage",
39-
"test:eslint": "eslint ./src",
40-
"test:types": "tsc",
41-
"test:build": "publint --strict",
42-
"build": "vite build"
43-
},
44-
"keywords": [
45-
"react",
46-
"vue",
47-
"solid",
48-
"svelte",
49-
"virtual",
50-
"virtual-core",
51-
"datagrid"
52-
],
5354
"files": [
5455
"dist",
5556
"src"

0 commit comments

Comments
 (0)
Please sign in to comment.