Skip to content

Commit ae30e96

Browse files
committed
add maverick to keyed bench
1 parent 2a3058d commit ae30e96

File tree

7 files changed

+3045
-0
lines changed

7 files changed

+3045
-0
lines changed

frameworks/keyed/maverick/.gitignore

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

frameworks/keyed/maverick/build.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
const { esbuild: maverick } = require("@maverick-js/compiler");
2+
3+
const dev = process.argv.includes("--dev");
4+
5+
require("esbuild").build({
6+
entryPoints: ["src/main.tsx"],
7+
outfile: "dist/main.js",
8+
watch: dev,
9+
bundle: true,
10+
minify: !dev,
11+
platform: "browser",
12+
target: "es2020",
13+
conditions: [dev ? "development" : "production", "default"],
14+
plugins: [
15+
maverick({
16+
include: ["src/**/*.tsx"],
17+
delegateEvents: true,
18+
}),
19+
],
20+
});

frameworks/keyed/maverick/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Maverick</title>
6+
<link href="/css/currentStyle.css" rel="stylesheet" />
7+
</head>
8+
<body>
9+
<div id="main"></div>
10+
<script src="dist/main.js"></script>
11+
</body>
12+
</html>

0 commit comments

Comments
 (0)