Skip to content

Commit d3b8470

Browse files
committed
chore: clean up examples
1 parent 03616f5 commit d3b8470

Some content is hidden

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

44 files changed

+1351
-8074
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
- name: build ✅
2424
run: bun run build
2525
- name: test ✅
26-
run: bun test
26+
run: bun run test

bun.lockb

3.86 KB
Binary file not shown.
File renamed without changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "background-job",
3+
"scripts": {
4+
"build": "tsc --noEmit"
5+
},
6+
"dependencies": {
7+
"plainstack": "workspace:*"
8+
}
9+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"extends": "../tsconfig.json"
4+
}
File renamed without changes.

example/2-client-component/counter.tsx renamed to example/client-component/counter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useState } from "hono/jsx";
2-
import { mount } from "plainstack/client";
2+
import { mount } from "../../plainstack/src/client";
33

44
export function Counter() {
55
const [count, setCount] = useState(0);
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "client-component",
3+
"scripts": {
4+
"build": "tsc --noEmit"
5+
},
6+
"dependencies": {
7+
"plainstack": "workspace:*"
8+
}
9+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"extends": "../tsconfig.json"
4+
}

example/error-handler/app.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Hono } from "hono";
2+
import { error } from "plainstack";
3+
4+
process.env.NODE_ENV = "development";
5+
const app = new Hono();
6+
app.onError(error());
7+
8+
app.get("/", async (c) => {
9+
throw new Error("database connection error");
10+
});
11+
12+
export default app;

0 commit comments

Comments
 (0)