Skip to content

Commit

Permalink
frontside.com joints the revolution
Browse files Browse the repository at this point in the history
Upgrade to the middleware framework we've been using for all our sites
which has now been extracted into a separate library. This
consolidates a lot of code, makes twind more accessible and standard
via `twing.config.ts` and also  improves the caching and proxy
behavior to load sites faster.

For example, we were not properly forwarding `if-none-match` headers
and so none of our proxy responses were being cached.
  • Loading branch information
cowboyd committed Nov 15, 2023
1 parent 40882b7 commit 012dfcd
Show file tree
Hide file tree
Showing 27 changed files with 1,782 additions and 1,574 deletions.
12 changes: 6 additions & 6 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"tasks": {
"dev": "deno run -A lib/watch.ts html components lib sitemap assets src -- deno run --lock-write -A main.ts"
"dev": "deno run -A lib/watch.ts components lib assets routes plugins -- deno run --lock-write -A main.tsx"
},
"lint": {
"rules": {
Expand All @@ -12,13 +12,13 @@
"exclude": ["legacy"]
},
"compilerOptions": {
"lib": ["deno.ns", "dom", "dom.iterable"],
"jsx": "react-jsx",
"jsxImportSource": "hastx"
"jsxImportSource": "revolution"
},
"imports": {
"effection": "https://deno.land/x/effection@3.0.0-alpha.9/mod.ts",
"freejack/": "./lib/",
"hastx/": "https://deno.land/x/hastx@v0.0.6/",
"hastx/jsx-runtime": "https://deno.land/x/hastx@v0.0.6/jsx-runtime.ts"
"effection": "https://deno.land/x/effection@3.0.0-beta.2/mod.ts",
"revolution": "https://deno.land/x/revolution@0.3.0/mod.ts",
"revolution/jsx-runtime": "https://deno.land/x/revolution@0.3.0/jsx-runtime.ts"
}
}
637 changes: 536 additions & 101 deletions deno.lock

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions html.ts

This file was deleted.

792 changes: 0 additions & 792 deletions html/advance-backstage-plugin-development.html.tsx

This file was deleted.

146 changes: 0 additions & 146 deletions html/app.html.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions html/env.ts

This file was deleted.

28 changes: 0 additions & 28 deletions html/index.html.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions lib/deps.ts

This file was deleted.

42 changes: 0 additions & 42 deletions lib/html.ts

This file was deleted.

21 changes: 0 additions & 21 deletions lib/route-recognizer.ts

This file was deleted.

1 change: 0 additions & 1 deletion lib/router.ts

This file was deleted.

Loading

0 comments on commit 012dfcd

Please sign in to comment.