Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions .changeset/flat-kids-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tanstack/create': patch
---

chore: bump solid base and example to vite 8
14 changes: 9 additions & 5 deletions examples/custom-cli/create-qwik-app/project/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "my-qwik-empty-starter",
"description": "Blank project with routing included",
"engines": {
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
"node": "^20.19.0 || >=22.12.0"
},
"engines-annotation": "Mostly required by sharp which needs a Node-API v9 compatible runtime",
"engines-annotation": "Required by Vite 8 (Node 20.19+ or 22.12+)",
"private": true,
"type": "module",
"scripts": {
Expand All @@ -20,21 +20,25 @@
"lint": "eslint \"src/**/*.ts*\"",
"preview": "qwik build preview && vite preview --open",
"start": "vite --open --mode ssr",
"qwik": "qwik"
"qwik": "qwik",
"test": "vitest run"
},
"devDependencies": {
"@builder.io/qwik": "^1.13.0",
"@builder.io/qwik-city": "^1.13.0",
"@noma.to/qwik-testing-library": "^1.6.0",
"@testing-library/dom": "^10.4.1",
"@types/eslint": "8.56.10",
"@types/node": "20.14.11",
"@typescript-eslint/eslint-plugin": "7.16.1",
"@typescript-eslint/parser": "7.16.1",
"eslint": "8.57.0",
"eslint-plugin-qwik": "^1.13.0",
"jsdom": "^28.1.0",
"prettier": "3.3.3",
"typescript": "^6.0.2",
"undici": "*",
"vite": "^7.1.7",
"vite-tsconfig-paths": "^4.2.1"
"vite": "^8.0.10",
"vitest": "^4.1.5"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { component$ } from "@builder.io/qwik";
import { describe, expect, test } from "vitest";
import { render, screen } from "@noma.to/qwik-testing-library";

const Hello = component$(() => <div>Hello Qwik</div>);

describe("Hello", () => {
test("renders", async () => {
await render(<Hello />);
expect(screen.getByText("Hello Qwik")).toBeDefined();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import { defineConfig, type UserConfig } from "vite";
import { qwikVite } from "@builder.io/qwik/optimizer";
import { qwikCity } from "@builder.io/qwik-city/vite";
import tsconfigPaths from "vite-tsconfig-paths";
import pkg from "./package.json";

type PkgDep = Record<string, string>;
Expand All @@ -23,7 +22,8 @@ import tailwindcss from '@tailwindcss/vite'
*/
export default defineConfig(({ command, mode }): UserConfig => {
return {
plugins: [qwikCity(), qwikVite(), tsconfigPaths(), tailwindcss()],
resolve: { tsconfigPaths: true },
plugins: [qwikCity(), qwikVite(), tailwindcss()],
// This tells Vite which dependencies to pre-build in dev mode.
optimizeDeps: {
// Put problematic deps that break bundling here, mostly those with binaries.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@types/react-dom": "19.1.2",
"tailwindcss": "^4.1.14",
"typescript": "^6.0.2",
"vite": "7.1.6",
"vite": "^8.0.10",
"wrangler": "4.38.0"
},
"pnpm": {
Expand Down
11 changes: 5 additions & 6 deletions examples/react/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,20 @@
"@content-collections/core": "^0.13.1",
"@content-collections/markdown": "^0.1.4",
"@content-collections/mdx": "^0.2.2",
"@content-collections/vite": "^0.2.8",
"@content-collections/vite": "^0.3.0",
"@tailwindcss/typography": "^0.5.16",
"@tanstack/devtools-vite": "^0.3.11",
"@tanstack/devtools-vite": "^0.6.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.2.0",
"@types/node": "^22.10.2",
"@types/react": "^19.2.0",
"@types/react-dom": "^19.2.0",
"@vitejs/plugin-react": "^5.0.4",
"@vitejs/plugin-react": "^6.0.1",
"jsdom": "^27.0.0",
"remark-gfm": "^4.0.1",
"typescript": "^6.0.2",
"vite": "^7.1.7",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^3.0.5",
"vite": "^8.0.10",
"vitest": "^4.1.5",
"zod": "^4.3.5"
},
"pnpm": {
Expand Down
2 changes: 1 addition & 1 deletion examples/react/blog/starter-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@content-collections/core": "^0.13.1",
"@content-collections/markdown": "^0.1.4",
"@content-collections/mdx": "^0.2.2",
"@content-collections/vite": "^0.2.8",
"@content-collections/vite": "^0.3.0",
"@tailwindcss/typography": "^0.5.16",
"remark-gfm": "^4.0.1",
"zod": "^4.3.5"
Expand Down
12 changes: 6 additions & 6 deletions examples/react/blog/starter.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/react/blog/template-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@content-collections/core": "^0.13.1",
"@content-collections/markdown": "^0.1.4",
"@content-collections/mdx": "^0.2.2",
"@content-collections/vite": "^0.2.8",
"@content-collections/vite": "^0.3.0",
"@tailwindcss/typography": "^0.5.16",
"remark-gfm": "^4.0.1",
"zod": "^4.3.5"
Expand Down
12 changes: 6 additions & 6 deletions examples/react/blog/template.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions examples/react/blog/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import { defineConfig } from 'vite'
import { devtools } from '@tanstack/devtools-vite'
import contentCollections from '@content-collections/vite'
import tsconfigPaths from 'vite-tsconfig-paths'

import { tanstackStart } from '@tanstack/react-start/plugin/vite'

import viteReact from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'

const config = defineConfig({
resolve: { tsconfigPaths: true },
plugins: [
devtools(),
contentCollections(),
tsconfigPaths({ projects: ['./tsconfig.json'] }),
tailwindcss(),
tanstackStart(),
viteReact(),
Expand Down
9 changes: 4 additions & 5 deletions examples/react/ecommerce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,19 @@
"react-dom": "^19.2.0",
"streamdown": "^1.6.5",
"tailwindcss": "^4.0.6",
"vite-tsconfig-paths": "^6.0.3",
"zod": "^3.25.0"
},
"devDependencies": {
"@tanstack/devtools-vite": "^0.3.11",
"@tanstack/devtools-vite": "^0.6.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.2.0",
"@types/react": "^19.2.0",
"@types/react-dom": "^19.2.0",
"@vitejs/plugin-react": "^5.0.4",
"@vitejs/plugin-react": "^6.0.1",
"jsdom": "^27.0.0",
"typescript": "^6.0.2",
"vite": "^7.3.1",
"vitest": "^3.0.5",
"vite": "^8.0.10",
"vitest": "^4.1.5",
"web-vitals": "^5.1.0"
}
}
Loading
Loading