Skip to content

Commit 38e2ad0

Browse files
committed
refactor: use valibot for type checking
1 parent 22d8e13 commit 38e2ad0

35 files changed

+249
-223
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ Edmonton, Alberta)
66
Built with [Fresh](https://fresh.deno.dev/) and [Deno](https://deno.land/)
77

88
```
9-
deno task start
9+
deno task dev
1010
```
1111

1212
Public data comes from City of Edmonton's open data portal.
1313

1414
- `https://data.edmonton.ca/City-Administration/Property-Assessment-Data-Historical-/qi6a-xuwt`
15+
- `https://data.edmonton.ca/City-Administration/Property-Assessment-Data-Current-Calendar-Year-/q7d6-ambg`
1516

1617
### Bugs & features
1718

deno.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"tasks": {
3-
"dev": "deno run -A --watch=static/,routes/ dev.ts",
3+
"dev": "deno run -A --watch=sr/static/,src/routes/ src/dev.ts",
44
"build": "deno run -A dev.ts build",
55
"start": "deno run -A main.ts",
66
"update": "deno run -A -r jsr:@fresh/update ."
77
},
88
"imports": {
99
"$fresh/": "https://deno.land/x/[email protected]/",
10+
"@valibot/valibot": "jsr:@valibot/valibot@^0.42.1",
1011
"chartjs": "https://esm.sh/[email protected]",
1112
"preact": "npm:preact@^10.24.1",
1213
"tailwindcss": "npm:tailwindcss@^3.4.14"
@@ -26,4 +27,4 @@
2627
"exclude": [
2728
"**/_fresh/*"
2829
]
29-
}
30+
}

dev.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

routes/[id].tsx

Lines changed: 0 additions & 95 deletions
This file was deleted.

routes/index.tsx

Lines changed: 0 additions & 18 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/dev.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import dev from "$fresh/dev.ts";
2+
import config from "../src/fresh.config.ts";
3+
4+
await dev(import.meta.url, "./main.ts", config);

0 commit comments

Comments
 (0)