Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
87edd8d
feat(viteplus): migration
anymaniax Jun 1, 2026
2dbbaa1
Merge branch 'master' into feature/setup-vite-plus
anymaniax Jun 1, 2026
7afd538
chore(bun): lock update
anymaniax Jun 1, 2026
ba7854a
chore(format): update
anymaniax Jun 1, 2026
ce28582
chore(lint): using a spread operator here creates a new object unnece…
anymaniax Jun 1, 2026
c341937
fix(workspace): linking again orval
anymaniax Jun 1, 2026
d3ce18a
fix(package): nuke
anymaniax Jun 1, 2026
4b83d48
fix(vite-config): shared config cache missing
anymaniax Jun 1, 2026
df32fe5
fix(vite-config-base): make dev command working in all env
anymaniax Jun 1, 2026
a4470a5
chore(readme): sync readme with change to viteplus
anymaniax Jun 1, 2026
3f74ae0
Merge branch 'master' into feature/setup-vite-plus
anymaniax Jun 2, 2026
13c2a8e
feat(workspace): use vp check, add typeAware and typeCheck, rename de…
anymaniax Jun 2, 2026
ee17c1d
feat(viteplus): migrate all command to vp
anymaniax Jun 2, 2026
86a0834
fix(format): check
anymaniax Jun 2, 2026
c08dcab
feat(viteplus): lint samples
anymaniax Jun 2, 2026
e4eb0f6
fix(viteplus): ci lint issues
anymaniax Jun 2, 2026
ce0a591
feat(viteplus): default formater
anymaniax Jun 2, 2026
b3df43b
fix(ci): apply recommendations by coderabbit
anymaniax Jun 2, 2026
40a8d58
fix(hono): update snapshot
anymaniax Jun 2, 2026
42b56c1
fix(ci): upgrade node to 24
anymaniax Jun 2, 2026
aae3677
Merge branch 'master' into feature/setup-vite-plus
anymaniax Jun 2, 2026
1ac5ae3
Merge branch 'master' into feature/setup-vite-plus
anymaniax Jun 3, 2026
1ab96f3
fix(node): version 22 minimum again
anymaniax Jun 3, 2026
08f400b
fix(docs): change bun install to vp install
anymaniax Jun 3, 2026
9ae5edc
fix(precommit): move from husky to viteplus
anymaniax Jun 3, 2026
91ecb71
fix(package): command samples deep run
anymaniax Jun 3, 2026
0b884bd
fix(snapshot): update properly
anymaniax Jun 3, 2026
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
28 changes: 16 additions & 12 deletions .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,38 @@ jobs:
node-version: [22.x]
steps:
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
- name: Setup Vite+
uses: voidzero-dev/setup-vp@v1
with:
node-version: ${{ matrix.node-version }}
cache: true
- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Install dependencies
run: bun install --frozen-lockfile
run: vp install --frozen-lockfile

- name: Check formatting
run: bun run format:check
run: vp fmt --check

- name: Build packages
run: bun run build

- name: Typecheck packages
run: bun run typecheck
run: vp run -w build

- name: Lint packages
run: bun run lint
run: vp run -w lint

- name: Lint samples
run: vp run -w lint:samples

- name: Typecheck packages
run: vp run -w typecheck

- name: Test packages
run: bun run test
run: vp run -w test

- name: Verify snapshot
# this step also runs the generate-api task
run: bun run test:snapshots
run: vp run -w test:snapshots

- name: Verify generated code can build
run: bun run --filter orval-tests build
run: vp run -F orval-tests build
11 changes: 6 additions & 5 deletions .github/workflows/release-prepare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@ jobs:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Node.js
uses: actions/setup-node@v6
- name: Setup Vite+
uses: voidzero-dev/setup-vp@v1
with:
node-version: 24
cache: false
- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Install dependencies
run: bun install --frozen-lockfile
run: vp install --frozen-lockfile

# 🔧 New step to remove stableVersion recursively
- name: Remove all stableVersion fields
Expand All @@ -50,8 +51,8 @@ jobs:
for pkg in $(find . -name package.json -not -path '*/node_modules/*' -not -path '*/dist/*'); do
jq --arg v "${{ github.event.inputs.version }}" '.version = $v' "$pkg" > tmp.$$.json && mv tmp.$$.json "$pkg"
done
bun install
bun run test:snapshots:update
vp install
vp run -w test:snapshots:update

- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/release-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,19 @@ jobs:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Node.js
uses: actions/setup-node@v6
- name: Setup Vite+
uses: voidzero-dev/setup-vp@v1
with:
node-version: 24
cache: false
- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Install dependencies
run: bun install --frozen-lockfile
run: vp install --frozen-lockfile

- name: Run build
run: bun run build
run: vp run -w build

- name: Configure npm authentication
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/snapshot-version-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
if [ "$FAILED" -eq 1 ]; then
echo ""
echo "::error::Snapshot version mismatch. Snapshots must be generated with orval v${EXPECTED_VERSION} (the version on master)."
echo "Run 'bun run test:snapshots:update' after updating the orval version to regenerate snapshots."
echo "Run 'vp run -w test:snapshots:update' after updating the orval version to regenerate snapshots."
exit 1
fi

Expand Down
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion .husky/commit-msg

This file was deleted.

1 change: 0 additions & 1 deletion .husky/pre-commit

This file was deleted.

3 changes: 0 additions & 3 deletions .lintstagedrc.json

This file was deleted.

36 changes: 0 additions & 36 deletions .prettierignore

This file was deleted.

30 changes: 0 additions & 30 deletions .release-it.ts

This file was deleted.

1 change: 1 addition & 0 deletions .vite-hooks/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vp run -w commitlint --edit
1 change: 1 addition & 0 deletions .vite-hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vp staged
7 changes: 5 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"recommendations": [
"streetsidesoftware.code-spell-checker",
"dbaeumer.vscode-eslint",
"vitest.explorer",
"VoidZero.vite-plus-extension-pack",
"unifiedjs.vscode-mdx"
],
"unwantedRecommendations": [
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint"
]
}
28 changes: 11 additions & 17 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,25 @@
"tanstack",
"zods"
],
"files.associations": {
"turbo.json": "jsonc"
},
"typescript.tsdk": "node_modules/typescript/lib",
"eslint.enable": false,
"prettier.enable": false,
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"editor.defaultFormatter": "oxc.oxc-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
"source.fixAll.oxc": "explicit"
},
"npm.scriptRunner": "vp",
"[mdx]": {
"editor.defaultFormatter": "unifiedjs.vscode-mdx"
},
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"debug.javascript.terminalOptions": {
"skipFiles": [
"**/node_modules/**",
"<node_internals>/**",
"**/node/corepack/**"
]
},
"[mdx]": {
"editor.defaultFormatter": "unifiedjs.vscode-mdx"
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
"oxc.fmt.configPath": "./vite.config.ts"
}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ gh repo clone <your-github-name>/orval
Install dependencies and set up Git hooks:

```bash
bun install && bun run prepare
vp install && vp run prepare
```

### Implement your changes
Expand Down
2 changes: 1 addition & 1 deletion DEBUGGING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ There are several methods available for debugging the Orval codebase.

## Running the Development Environment

The first step when working with the project is to set up the development environment. After following the setup instructions in the [CONTRIBUTING.md](./CONTRIBUTING.md) file, you can use the default command `bun run dev` to run the codebase locally. This command is part of the `turbo dev` process and will run the sample project located at [react-query/basic](./samples/react-query/basic/). You can use this sample as a starting point to debug the output generated by the project.
The first step when working with the project is to set up the development environment. After following the setup instructions in the [CONTRIBUTING.md](./CONTRIBUTING.md) file, you can use the default command `vp run watch` to run the codebase locally. This command is part of the vite-plus (`vp run`) dev process and will run the sample project located at [react-query/basic](./samples/react-query/basic/). You can use this sample as a starting point to debug the output generated by the project.

If you'd like to try debugging a different sample, feel free to update the `generate-api` script in the [package.json](./packages/orval/package.json) file to reference a different sample or modify the existing `react-query/basic` sample as needed.

Expand Down
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,42 +70,42 @@ This project uses [Bun](https://bun.sh/) for package management and building. Bu

### Build Scripts

- **`bun run nuke:all`** - Completely clean your workspace by removing all build artifacts, node_modules, and cached files. Use this when you want to start fresh.
- **`vp run nuke:all`** - Completely clean your workspace by removing all build artifacts, node_modules, and cached files. Use this when you want to start fresh.

- **`bun run build`** - Build the project and make changes available to the workspace. Run this after making code changes to compile TypeScript and prepare the project for use.
- **`vp run build`** - Build the project and make changes available to the workspace. Run this after making code changes to compile TypeScript and prepare the project for use.

- **`bun run typecheck`** - Run TypeScript type checking across all packages.
- **`vp run typecheck`** - Run TypeScript type checking across all packages.

### Test Scripts

- **`bun run test`** - Run unit tests in all packages.
- **`vp run test`** - Run unit tests in all packages.

- **`bun run update-samples`** - Generate sample outputs using the newly built version of Orval. This regenerates the sample code based on the current build.
- **`vp run update-samples`** - Generate sample outputs using the newly built version of Orval. This regenerates the sample code based on the current build.

- **`bun run test:samples`** - Run tests in the samples directory using the newly generated output from `update-samples`.
- **`vp run test:samples`** - Run tests in the samples directory using the newly generated output from `update-samples`.

- **`bun run test:snapshots`** - Run snapshot tests to verify generated sample outputs match the committed snapshots. Fails if any generated file differs from its snapshot.
- **`vp run test:snapshots`** - Run snapshot tests to verify generated sample outputs match the committed snapshots. Fails if any generated file differs from its snapshot.

- **`bun run test:snapshots:update`** - Regenerate snapshot files to match the current generated output. Run this after `bun run update-samples` when the generated output has intentionally changed.
- **`vp run test:snapshots:update`** - Regenerate snapshot files to match the current generated output. Run this after `vp run update-samples` when the generated output has intentionally changed.

- **`bun run test:cli`** - Test that the generated output (not samples) is valid TypeScript. This validates the TypeScript compilation of the generated code.
- **`vp run test:cli`** - Test that the generated output (not samples) is valid TypeScript. This validates the TypeScript compilation of the generated code.

### Development Workflow

A typical development workflow would be:

1. Make your code changes
2. Run `bun run build` to compile your changes
3. Run `bun run typecheck` to verify package typings
4. Run `bun run lint` to catch lint issues early
5. Run `bun run test` to run unit tests in packages
6. Run `bun run test:snapshots` to verify generated output matches snapshots
2. Run `vp run build` to compile your changes
3. Run `vp run typecheck` to verify package typings
4. Run `vp run lint` to catch lint issues early
5. Run `vp run test` to run unit tests in packages
6. Run `vp run test:snapshots` to verify generated output matches snapshots

If step 6 fails because the generated output has intentionally changed, run `bun run test:snapshots:update` to update the snapshots.
If step 6 fails because the generated output has intentionally changed, run `vp run test:snapshots:update` to update the snapshots.

If you encounter issues or want to start completely fresh:

1. Run `bun run nuke:all` to clean everything
1. Run `vp run nuke:all` to clean everything
2. Reinstall dependencies and rebuild from scratch

## Sponsors
Expand Down
Loading
Loading