Skip to content

TanStack Config Migration #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 49 commits into from
Jan 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
ddea0e9
chore: migrate project to use TanStack Config
crutchcorn Jan 15, 2025
a24b29c
chore: migrate text and error to TS
crutchcorn Jan 15, 2025
a6928ea
chore: mirgate get-queries-for-instance to TS
crutchcorn Jan 15, 2025
081a42a
chore: migrate events to TS
crutchcorn Jan 15, 2025
09be3b7
chore: migrate wait-for to TS
crutchcorn Jan 15, 2025
e0fdd57
chore: migrate code frame code to TS
crutchcorn Jan 15, 2025
6fc6bfc
chore: mirgate helpers to TS
crutchcorn Jan 15, 2025
2295ea0
chore: migrate more to TS
crutchcorn Jan 15, 2025
53c52d7
chore: migrate suggestions to use TS
crutchcorn Jan 15, 2025
f59c1ab
chore: more TS migration
crutchcorn Jan 15, 2025
6ffce34
chore: migrate pure to TS
crutchcorn Jan 15, 2025
9ff38fe
chore: more work
crutchcorn Jan 15, 2025
3e07d78
chore: fix build (roughly)
crutchcorn Jan 15, 2025
c2d1945
chore: rename test files
crutchcorn Jan 15, 2025
2320814
chore: migrate all tests to ESM imports
crutchcorn Jan 15, 2025
0f461a7
chore: fix events tests
crutchcorn Jan 15, 2025
ca4f325
chore: maybe fix code frame test
crutchcorn Jan 15, 2025
c02153c
chore: major version bumps
crutchcorn Jan 15, 2025
06c490f
chore: fix file
crutchcorn Jan 15, 2025
37055c2
chore: fix matches test
crutchcorn Jan 15, 2025
33addb1
chore: fix pretty cli
crutchcorn Jan 15, 2025
d072bf5
chore: fix issues with many tests
crutchcorn Jan 15, 2025
c751f17
chore: more
crutchcorn Jan 15, 2025
36a68e7
chore: fix wait-for tests
crutchcorn Jan 15, 2025
9bfaa69
fix: ESM build no longer breaks
crutchcorn Jan 15, 2025
bb3d27d
chore: hopefully fix __dirname problems
crutchcorn Jan 26, 2025
f188a1d
chore: add proper exports for Jest and Vitest
crutchcorn Jan 26, 2025
fba4534
chore: replace chalk with picocolor
crutchcorn Jan 26, 2025
712671c
chore: fix type resolution issues
crutchcorn Jan 26, 2025
07e5b25
chore: fix AreTheTypesWrong detection
crutchcorn Jan 26, 2025
e8bbcdf
chore: add mention of Vitest and new imports to docs
crutchcorn Jan 26, 2025
ad72a1a
chore: ran Prettier
crutchcorn Jan 26, 2025
b29cd62
chore: remove Nx usage and fix publish command
crutchcorn Jan 26, 2025
bfeddac
chore: fix CI/CD more
crutchcorn Jan 26, 2025
0016729
ci: apply automated fixes and generate docs
autofix-ci[bot] Jan 26, 2025
e049ecc
chore: improve homepage
crutchcorn Jan 26, 2025
1d0d3d6
Merge branch 'tanstack-config' of https://github.com/crutchcorn/cli-t…
crutchcorn Jan 26, 2025
be8e05f
ci: apply automated fixes and generate docs
autofix-ci[bot] Jan 26, 2025
e37acc2
chore: fix website links
crutchcorn Jan 26, 2025
623cbe6
ci: apply automated fixes and generate docs
autofix-ci[bot] Jan 26, 2025
7fde83c
chore: deploy site
crutchcorn Jan 26, 2025
dcceef6
chore: fix nx affected issues
crutchcorn Jan 26, 2025
b1cbef0
chore: autofix ESLint
crutchcorn Jan 26, 2025
2602a1d
chore: fix ESLint
crutchcorn Jan 26, 2025
e6d48fd
chore: fix knip
crutchcorn Jan 26, 2025
78e143a
chore: fix test ci
crutchcorn Jan 26, 2025
fdb3310
ci: apply automated fixes and generate docs
autofix-ci[bot] Jan 26, 2025
35f4c35
chore: bump to v3
crutchcorn Jan 26, 2025
0d9282f
Merge branch 'tanstack-config' of https://github.com/crutchcorn/cli-t…
crutchcorn Jan 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 0 additions & 64 deletions .all-contributorsrc

This file was deleted.

1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto eol=lf
31 changes: 31 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: autofix.ci # needed to securely identify the workflow

on:
pull_request:
push:
branches: [main, alpha, beta]

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
autofix:
name: autofix
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Tools
uses: tanstack/config/.github/setup@main
- name: Fix formatting
run: pnpm prettier:write
- name: Generate Docs
run: pnpm docs:generate
- name: Apply fixes
uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
with:
commit-message: "ci: apply automated fixes and generate docs"
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: ci

on:
workflow_dispatch:
inputs:
tag:
description: override release tag
required: false
push:
branches: [main, alpha, beta]

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

permissions:
contents: write
id-token: write

jobs:
test-and-publish:
name: Test & Publish
if: github.repository == 'crutchcorn/cli-testing-library'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Tools
uses: tanstack/config/.github/setup@main
- name: Run Tests
run: pnpm run test:ci --parallel=3
- name: Publish
run: |
git config --global user.name 'Corbin Crutchley'
git config --global user.email '[email protected]'
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
pnpm run cipublish
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
TAG: ${{ inputs.tag }}
36 changes: 36 additions & 0 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy Preview

on:
push:
branches:
- main

permissions: {}

jobs:
deploy-docs:
permissions:
contents: write # to write to gh-pages branch (peaceiris/actions-gh-pages)

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"

- name: Install packages
run: pnpm install --frozen-lockfile --prefer-offline

- name: Build
run: pnpm run build:website

- name: Deploy docs
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: website/dist
cname: cli-testing.com
41 changes: 41 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: pr

on:
pull_request:
paths-ignore:
- "docs/**"
- "media/**"
- "**/*.md"

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Tools
uses: tanstack/config/.github/setup@main
- name: Run Checks
run: pnpm run test:pr --parallel=3
preview:
name: Preview
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Tools
uses: tanstack/config/.github/setup@main
- name: Build Packages
run: pnpm run build:all
- name: Publish Previews
run: pnpx pkg-pr-new publish --pnpm --compact './packages/*' --template './examples/*/*'
87 changes: 0 additions & 87 deletions .github/workflows/validate.yml

This file was deleted.

45 changes: 37 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,42 @@

# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
node_modules
package-lock.json
yarn.lock

# builds
build
coverage
dist

# misc
.DS_Store
.idea/
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
.next

# these cause more harm than good
# when working with contributors
package-lock.json
yarn.lock
# Temporary for dev
old/
reference/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.history
size-plugin.json
stats-hydration.json
stats.json
stats.html
.vscode/settings.json

*.log
.cache
.idea
.nx/cache
.nx/workspace-data
.pnpm-store
.tsup

vite.config.js.timestamp-*
vite.config.ts.timestamp-*
1 change: 0 additions & 1 deletion .huskyrc.js

This file was deleted.

5 changes: 3 additions & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
registry=https://registry.npmjs.org/
package-lock=false
link-workspace-packages=true
prefer-workspace-packages=true
provenance=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.12.0
12 changes: 9 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
node_modules
coverage
dist
**/.next
**/.nx/cache
**/.svelte-kit
**/build
**/coverage
**/dist
**/docs
**/codemods/**/__testfixtures__
pnpm-lock.yaml
1 change: 0 additions & 1 deletion .prettierrc.js

This file was deleted.

Loading
Loading