Skip to content

Commit 311b8cd

Browse files
TanStack Config Migration (#31)
* chore: migrate project to use TanStack Config * chore: migrate text and error to TS * chore: mirgate get-queries-for-instance to TS * chore: migrate events to TS * chore: migrate wait-for to TS * chore: migrate code frame code to TS * chore: mirgate helpers to TS * chore: migrate more to TS * chore: migrate suggestions to use TS * chore: more TS migration * chore: migrate pure to TS * chore: more work * chore: fix build (roughly) * chore: rename test files * chore: migrate all tests to ESM imports * chore: fix events tests * chore: maybe fix code frame test * chore: major version bumps * chore: fix file * chore: fix matches test * chore: fix pretty cli * chore: fix issues with many tests * chore: more * chore: fix wait-for tests * fix: ESM build no longer breaks Fixes: #29 * chore: hopefully fix __dirname problems * chore: add proper exports for Jest and Vitest * chore: replace chalk with picocolor * chore: fix type resolution issues * chore: fix AreTheTypesWrong detection * chore: add mention of Vitest and new imports to docs * chore: ran Prettier * chore: remove Nx usage and fix publish command * chore: fix CI/CD more * ci: apply automated fixes and generate docs * chore: improve homepage * ci: apply automated fixes and generate docs * chore: fix website links * ci: apply automated fixes and generate docs * chore: deploy site * chore: fix nx affected issues * chore: autofix ESLint * chore: fix ESLint * chore: fix knip * chore: fix test ci * ci: apply automated fixes and generate docs * chore: bump to v3 --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 463facf commit 311b8cd

File tree

237 files changed

+15196
-3649
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

237 files changed

+15196
-3649
lines changed

.all-contributorsrc

-64
This file was deleted.

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
# Auto detect text files and perform LF normalization
12
* text=auto eol=lf

.github/workflows/autofix.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: autofix.ci # needed to securely identify the workflow
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main, alpha, beta]
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
autofix:
17+
name: autofix
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/[email protected]
22+
- name: Setup Tools
23+
uses: tanstack/config/.github/setup@main
24+
- name: Fix formatting
25+
run: pnpm prettier:write
26+
- name: Generate Docs
27+
run: pnpm docs:generate
28+
- name: Apply fixes
29+
uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
30+
with:
31+
commit-message: "ci: apply automated fixes and generate docs"

.github/workflows/ci.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: ci
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: override release tag
8+
required: false
9+
push:
10+
branches: [main, alpha, beta]
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
14+
cancel-in-progress: true
15+
16+
permissions:
17+
contents: write
18+
id-token: write
19+
20+
jobs:
21+
test-and-publish:
22+
name: Test & Publish
23+
if: github.repository == 'crutchcorn/cli-testing-library'
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
- name: Setup Tools
29+
uses: tanstack/config/.github/setup@main
30+
- name: Run Tests
31+
run: pnpm run test:ci --parallel=3
32+
- name: Publish
33+
run: |
34+
git config --global user.name 'Corbin Crutchley'
35+
git config --global user.email '[email protected]'
36+
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
37+
pnpm run cipublish
38+
env:
39+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
41+
TAG: ${{ inputs.tag }}

.github/workflows/deploy-preview.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Deploy Preview
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions: {}
9+
10+
jobs:
11+
deploy-docs:
12+
permissions:
13+
contents: write # to write to gh-pages branch (peaceiris/actions-gh-pages)
14+
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup pnpm
19+
uses: pnpm/action-setup@v4
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version-file: ".nvmrc"
23+
cache: "pnpm"
24+
25+
- name: Install packages
26+
run: pnpm install --frozen-lockfile --prefer-offline
27+
28+
- name: Build
29+
run: pnpm run build:website
30+
31+
- name: Deploy docs
32+
uses: peaceiris/actions-gh-pages@v4
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
publish_dir: website/dist
36+
cname: cli-testing.com

.github/workflows/pr.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: pr
2+
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- "docs/**"
7+
- "media/**"
8+
- "**/*.md"
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
12+
cancel-in-progress: true
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
test:
19+
name: Test
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
- name: Setup Tools
25+
uses: tanstack/config/.github/setup@main
26+
- name: Run Checks
27+
run: pnpm run test:pr --parallel=3
28+
preview:
29+
name: Preview
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
with:
35+
fetch-depth: 0
36+
- name: Setup Tools
37+
uses: tanstack/config/.github/setup@main
38+
- name: Build Packages
39+
run: pnpm run build:all
40+
- name: Publish Previews
41+
run: pnpx pkg-pr-new publish --pnpm --compact './packages/*' --template './examples/*/*'

.github/workflows/validate.yml

-87
This file was deleted.

.gitignore

+37-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,42 @@
1+
2+
# See https://help.github.com/ignore-files/ for more about ignoring files.
3+
4+
# dependencies
15
node_modules
6+
package-lock.json
7+
yarn.lock
8+
9+
# builds
10+
build
211
coverage
312
dist
13+
14+
# misc
415
.DS_Store
5-
.idea/
16+
.env
17+
.env.local
18+
.env.development.local
19+
.env.test.local
20+
.env.production.local
21+
.next
622

7-
# these cause more harm than good
8-
# when working with contributors
9-
package-lock.json
10-
yarn.lock
11-
# Temporary for dev
12-
old/
13-
reference/
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
.history
27+
size-plugin.json
28+
stats-hydration.json
29+
stats.json
30+
stats.html
31+
.vscode/settings.json
32+
33+
*.log
34+
.cache
35+
.idea
36+
.nx/cache
37+
.nx/workspace-data
38+
.pnpm-store
39+
.tsup
40+
41+
vite.config.js.timestamp-*
42+
vite.config.ts.timestamp-*

.huskyrc.js

-1
This file was deleted.

.npmrc

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
registry=https://registry.npmjs.org/
2-
package-lock=false
1+
link-workspace-packages=true
2+
prefer-workspace-packages=true
3+
provenance=true

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22.12.0

.prettierignore

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
node_modules
2-
coverage
3-
dist
1+
**/.next
2+
**/.nx/cache
3+
**/.svelte-kit
4+
**/build
5+
**/coverage
6+
**/dist
7+
**/docs
8+
**/codemods/**/__testfixtures__
9+
pnpm-lock.yaml

.prettierrc.js

-1
This file was deleted.

0 commit comments

Comments
 (0)