Skip to content

Commit cf057d9

Browse files
committed
Merge branch 'wmertens-qwik'
2 parents 9d7c1fc + b9882aa commit cf057d9

File tree

16 files changed

+3715
-0
lines changed

16 files changed

+3715
-0
lines changed

frameworks/keyed/qwik/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
server

frameworks/keyed/qwik/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Qwik
2+
3+
Please note that this benchmark does not test the true power of Qwik, namely resumability. So the expected result is that Qwik is average in this benchmark, but it is much faster in real world applications.
4+
5+
See https://qwik.builder.io/docs/concepts/think-qwik/
6+
7+
## Build
8+
9+
The build uses the SSG capabilities of Qwik to create the static files.
10+
11+
Note: `npm build-prod` involves moving the built files to the root of the dist dir, because Vite outputs the full directory structure that is expected, and we need to "deploy" this so the benchmark can load the files.
12+
13+
That is to say, while `/dist` is the serving location for the benchmark, the files are actually built in `/dist/frameworks/keyed/qwik/dist`.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { staticAdapter } from "@builder.io/qwik-city/adapters/static/vite";
2+
import { extendConfig } from "@builder.io/qwik-city/vite";
3+
import baseConfig from "../../vite.config";
4+
5+
export default extendConfig(baseConfig, () => {
6+
return {
7+
build: {
8+
ssr: true,
9+
rollupOptions: {
10+
input: ["@qwik-city-plan"],
11+
},
12+
},
13+
plugins: [
14+
staticAdapter({
15+
origin:
16+
"https://github.com/krausest/js-framework-benchmark/tree/master/frameworks/qwik",
17+
}),
18+
],
19+
};
20+
});

0 commit comments

Comments
 (0)