Skip to content

Commit cce58f2

Browse files
LadyBluenotesBrendonovichkatywingsjer3m01
authored
feat: vite 8, start 2, nitro 3 (#119)
* feat: llms.txt * test: tests --------- Co-authored-by: Brendan Allan <[email protected]> Co-authored-by: Katja Lutz <[email protected]> Co-authored-by: jer3m01 <[email protected]> Co-authored-by: Brendan Allan <[email protected]>
1 parent bff3f0e commit cce58f2

125 files changed

Lines changed: 5748 additions & 4542 deletions

File tree

Some content is hidden

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

.github/workflows/cr.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: ⚡️ Continuous Releases
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
merge_group:
8+
pull_request:
9+
10+
jobs:
11+
cr:
12+
name: "⚡️ Continuous Releases"
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: pnpm/action-setup@v3
20+
21+
- name: Use Node.js 22.14.0
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 22.14.0
25+
registry-url: "https://registry.npmjs.org"
26+
cache: "pnpm"
27+
28+
- name: Install dependencies
29+
run: pnpm install --frozen-lockfile
30+
31+
- name: Build start
32+
run: pnpm run build
33+
34+
- name: Rewrite exports
35+
run: echo $(cat package.json | jq '.exports = .publishConfig.exports') > package.json
36+
37+
- name: Release
38+
run: pnpm dlx [email protected] publish

.github/workflows/format-files.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Setup Biome
2727
uses: biomejs/setup-biome@v2
2828
with:
29-
version: 1.9.2
29+
version: 2.4.7
3030

3131
- name: Run Biome
3232
run: biome ci .

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
*.json
66
*.cjs
77
*.css
8+
*.d.ts
89
pnpm-lock.yaml
910
examples/solid-docs

biome.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
{
22
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
33
"files": {
4-
"ignore": [
5-
"./tsconfig.json",
6-
"*/netlify/*",
7-
"**/package.json",
8-
"./examples/solid-docs",
9-
"**/app.config.*.js"
4+
"includes": [
5+
"**",
6+
"!./tsconfig.json",
7+
"!*/netlify/*",
8+
"!**/package.json",
9+
"!./examples/solid-docs",
10+
"!**/app.config.*.js",
11+
"!**/*.d.ts",
12+
"!node_modules"
1013
]
1114
},
1215
"vcs": {
@@ -30,7 +33,8 @@
3033
"noAssignInExpressions": "off"
3134
},
3235
"style": {
33-
"noNonNullAssertion": "off"
36+
"noNonNullAssertion": "off",
37+
"noDescendingSpecificity": "off"
3438
},
3539
"complexity": {
3640
"noBannedTypes": "off"

dev/app.config.ts

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
import { defineConfig } from "@solidjs/start/config";
2-
3-
import { createWithSolidBase, defineTheme } from "../src/config";
1+
import { createSolidBase, defineTheme } from "../src/config";
42
import defaultTheme from "../src/default-theme";
53

6-
const customTheme = defineTheme({
4+
const theme = defineTheme({
75
componentsPath: import.meta.resolve("./src/solidbase-theme"),
86
extends: defaultTheme,
97
});
108

11-
export default defineConfig(
12-
createWithSolidBase(customTheme)(
13-
{
14-
ssr: true,
15-
server: {
16-
prerender: {
17-
crawlLinks: true,
18-
},
19-
},
9+
const solidBase = createSolidBase(theme);
10+
11+
export default {
12+
...solidBase.startConfig({
13+
ssr: true,
14+
}),
15+
server: {
16+
prerender: {
17+
crawlLinks: true,
2018
},
21-
{
19+
},
20+
plugins: [
21+
solidBase.plugin({
2222
title: "SolidBase",
2323
description:
2424
"Fully featured, fully customisable static site generation for SolidStart",
@@ -30,12 +30,10 @@ export default defineConfig(
3030
transform: (_code, id) => {
3131
let code = _code;
3232

33-
// tests id
3433
if (id.endsWith("to-transform.tsx")) {
3534
code += "// appended by transform";
3635
}
3736

38-
// tests code
3937
return code.replace("REPLACE ME", "replaced string!");
4038
},
4139
},
@@ -108,6 +106,6 @@ export default defineConfig(
108106
],
109107
},
110108
},
111-
},
112-
),
113-
);
109+
}),
110+
],
111+
};

dev/package.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,23 @@
33
"type": "module",
44
"private": "true",
55
"scripts": {
6-
"dev": "VITE_SOLIDBASE_DEV=1 vinxi dev",
7-
"build": "vinxi build",
8-
"start": "vinxi start"
6+
"dev": "cross-env VITE_SOLIDBASE_DEV=true vite dev",
7+
"build": "vite build",
8+
"preview": "vite preview"
99
},
1010
"dependencies": {
1111
"@kobalte/solidbase": "workspace:*",
1212
"@solidjs/router": "^0.15.3",
13-
"@solidjs/start": "^1.1.1",
14-
"solid-js": "^1.9.5",
15-
"vinxi": "^0.5.3"
13+
"@solidjs/start": "https://pkg.pr.new/solidjs/solid-start/@solidjs/start@2080",
14+
"nitro": "3.0.260311-beta",
15+
"solid-js": "^1.9.9"
1616
},
1717
"engines": {
18-
"node": ">=18"
18+
"node": ">=22.12"
1919
},
2020
"devDependencies": {
21-
"@iconify-json/ri": "^1.2.5"
21+
"@iconify-json/ri": "^1.2.5",
22+
"cross-env": "^7.0.3",
23+
"vite": "^8.0.0"
2224
}
2325
}

dev/src/entry-client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// @refresh reload
2-
import { StartClient, mount } from "@solidjs/start/client";
2+
import { mount, StartClient } from "@solidjs/start/client";
33

44
mount(() => <StartClient />, document.getElementById("app")!);

dev/src/entry-server.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getHtmlProps } from "@kobalte/solidbase/server";
22
// @refresh reload
3-
import { StartServer, createHandler } from "@solidjs/start/server";
3+
import { createHandler, StartServer } from "@solidjs/start/server";
44

55
export default createHandler(() => (
66
<StartServer

dev/src/routes/about.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
title: About
3+
llms:
4+
exclude: true
35
---
46

57
# About Page

dev/src/routes/dave.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: What are we missing?
3+
description: This is a test page
34
---
45

56
Title as defined by frontmatter: {frontmatter.title}

0 commit comments

Comments
 (0)