Skip to content

Commit 65af38f

Browse files
committed
Merge branch 'Pauan-dominator'
2 parents 2bc0b4c + 9c7b492 commit 65af38f

File tree

11 files changed

+402
-0
lines changed

11 files changed

+402
-0
lines changed

frameworks/keyed/dominator/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
/target
3+
/pkg
4+
/wasm-pack.log
5+
/yarn-error.log

frameworks/keyed/dominator/Cargo.toml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[package]
2+
name = "js-framework-benchmark-dominator"
3+
version = "1.0.0"
4+
edition = "2018"
5+
6+
[profile.release]
7+
lto = true
8+
panic = "abort"
9+
10+
[lib]
11+
crate-type = ["cdylib"]
12+
13+
[dependencies]
14+
dominator = "0.5.0"
15+
futures-signals = "0.3.6"
16+
wasm-bindgen = "0.2.46"
17+
js-sys = "0.3.23"
18+
19+
[dependencies.web-sys]
20+
version = "0.3.23"
21+
features = [
22+
"Window",
23+
"Document",
24+
"Element",
25+
]
26+
27+
[dependencies.wasm-bindgen-futures]
28+
version = "0.3.24"
29+
features = ["futures_0_3"]

frameworks/keyed/dominator/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Because of the heavy amount of Rust dependencies, this example is pre-compiled, so you don't need to compile anything.
2+
3+
However, if you do want to compile it, you will need the following:
4+
5+
* [Rust](https://www.rust-lang.org/tools/install)
6+
7+
* [wasm-pack](https://rustwasm.github.io/wasm-pack/)
8+
9+
After installing those, run these commands:
10+
11+
```
12+
rustup toolchain install nightly
13+
rustup override set nightly
14+
npm install
15+
npm run build-prod-force
16+
```

frameworks/keyed/dominator/bundled-dist/1.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

frameworks/keyed/dominator/bundled-dist/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frameworks/keyed/dominator/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>Dominator</title>
6+
<link href="/css/currentStyle.css" rel="stylesheet"/>
7+
</head>
8+
<body>
9+
<div id='main'></div>
10+
<script src='bundled-dist/index.js'></script>
11+
</body>
12+
</html>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import("../pkg/index.js").catch(console.error);
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "js-framework-benchmark-dominator",
3+
"version": "1.0.0",
4+
"description": "Benchmark for dominator",
5+
"license": "ISC",
6+
"js-framework-benchmark": {
7+
"frameworkVersion": "0.5.0"
8+
},
9+
"scripts": {
10+
"build-prod": "echo This is a no-op. && echo Due to heavy dependencies, the generated javascript is already provided. && echo If you really want to rebuild from source use: && echo npm run build-prod-force",
11+
"build-prod-force": "rimraf bundled-dist pkg && webpack"
12+
},
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/krausest/js-framework-benchmark.git"
16+
},
17+
"devDependencies": {
18+
"@wasm-tool/wasm-pack-plugin": "^0.4.2",
19+
"webpack": "^4.33.0",
20+
"webpack-cli": "^3.3.3",
21+
"rimraf": "^2.6.3"
22+
}
23+
}

0 commit comments

Comments
 (0)