Skip to content

Commit 85600bc

Browse files
committed
updated to [email protected] with improved support for Deno Deploy
1 parent a4c6fe9 commit 85600bc

File tree

6 files changed

+19
-128
lines changed

6 files changed

+19
-128
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,9 @@ jobs:
2828
with:
2929
node-version: lts/*
3030

31-
- name: Install step
32-
run: "deno add npm:esbuild"
33-
3431
- name: Upload to Deno Deploy
3532
uses: denoland/deployctl@v1
3633
with:
3734
project: "fullsoak-examples"
3835
entrypoint: "src/main.ts"
3936
root: ""
40-
41-

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
dist

deno.jsonc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"imports": {
3-
"fullsoak": "jsr:@fullsoak/[email protected].0-alpha.13",
3+
"fullsoak": "jsr:@fullsoak/[email protected].2",
44
"preact": "npm:[email protected]",
55
"preact-iso": "npm:[email protected]",
66
"@std/testing": "jsr:@std/testing@^1.0.9"
@@ -14,6 +14,8 @@
1414
},
1515
"tasks": {
1616
"dev": "deno -A --watch src/main.ts",
17-
"test": "deno test -NIER --allow-ffi"
17+
"test": "deno test -NIER --allow-ffi --no-check",
18+
"test-update": "deno task test -W -- --update",
19+
"compile": "deno compile --no-check --output=dist/main -NER --allow-ffi src/main.ts"
1820
}
1921
}

deno.lock

Lines changed: 10 additions & 119 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/__snapshots__/MyComponent.test.ts.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ snapshot[`MyComponent 1`] = `
88
"preact/hooks": "https://esm.sh/[email protected]/hooks",
99
"react": "https://esm.sh/[email protected]",
1010
"react/jsx-runtime": "https://esm.sh/[email protected]/jsx-runtime",
11+
"preact/jsx-runtime": "https://esm.sh/[email protected]/jsx-runtime",
1112
"react-dom": "https://esm.sh/[email protected]/compat/",
1213
"react-dom/*": "https://esm.sh/[email protected]/compat/*",
1314
"htm/preact": "https://esm.sh/[email protected]/preact?external=preact",
@@ -18,5 +19,5 @@ snapshot[`MyComponent 1`] = `
1819
"@fullsoak/fullsoak": "/fullsoak"
1920
}
2021
}
21-
</script><script type="text/javascript"></script><style></style></head><body><main id="main"><section class="main"><h1>MyComponent</h1><ul><li>props &#39;foo&#39; is bar</li><li>state count is 0 <button >+</button><button >-</button></li><li><a href="/app">Route Aware App Component</a></li></ul></section><section style="padding:1rem;"><h2>MyOtherComponent</h2><span>props &#39;baz&#39; is 0</span></section></main><script type="text/javascript">window.preloadedProps = {"foo":"bar"}</script><script type="module" src="/js/MyComponent/mount.js"></script></body></html>'
22+
</script><script type="text/javascript"></script><style></style></head><body><main id="fullsoak-htmlshell-main"><section class="main"><h1>MyComponent</h1><ul><li>props &#39;foo&#39; is bar</li><li>state count is 0 <button >+</button><button >-</button></li><li><a href="/app">Route Aware App Component</a></li></ul></section><section style="padding:1rem;"><h2>MyOtherComponent</h2><span>props &#39;baz&#39; is 0</span></section><footer><span>source code of this website:</span> <a href="https://github.com/fullsoak/bun-examples.git">https://github.com/fullsoak/deno-examples</a></footer></main><script type="text/javascript">window.preloadedProps = {"foo":"bar"}</script><script type="module" src="/js/MyComponent/mount.js"></script></body></html>'
2223
`;

tests/__snapshots__/MyRouteAwareComponent.test.ts.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ snapshot[`MyRouteAwareComponent 1`] = `
88
"preact/hooks": "https://esm.sh/[email protected]/hooks",
99
"react": "https://esm.sh/[email protected]",
1010
"react/jsx-runtime": "https://esm.sh/[email protected]/jsx-runtime",
11+
"preact/jsx-runtime": "https://esm.sh/[email protected]/jsx-runtime",
1112
"react-dom": "https://esm.sh/[email protected]/compat/",
1213
"react-dom/*": "https://esm.sh/[email protected]/compat/*",
1314
"htm/preact": "https://esm.sh/[email protected]/preact?external=preact",
@@ -18,5 +19,5 @@ snapshot[`MyRouteAwareComponent 1`] = `
1819
"@fullsoak/fullsoak": "/fullsoak"
1920
}
2021
}
21-
</script><script type="text/javascript"></script><style></style></head><body><main id="main">,,[object Promise]</main><script type="text/javascript">window.preloadedProps = {"url":"http://localhost/bar"}</script><script type="module" src="/js/MyRouteAwareComponent/mount.js"></script></body></html>'
22+
</script><script type="text/javascript"></script><style></style></head><body><main id="fullsoak-htmlshell-main">,,[object Promise]</main><script type="text/javascript">window.preloadedProps = {"url":"http://localhost/bar"}</script><script type="module" src="/js/MyRouteAwareComponent/mount.js"></script></body></html>'
2223
`;

0 commit comments

Comments
 (0)