-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use 'deno bundle' for benchmark page
And improve bundle docs
- Loading branch information
Showing
9 changed files
with
98 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 15,5 @@ node_modules | |
# temp benchmark data | ||
/website/data.json | ||
/website/recent.json | ||
/website/*.bundle.js | ||
/js/gen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,8 @@ | ||
#!/usr/bin/env python | ||
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. | ||
import os | ||
from util import run, root_path, build_path | ||
|
||
os.chdir(os.path.join(root_path, "website")) | ||
deno_exe = os.path.join(build_path(), "deno") | ||
run([deno_exe, "bundle", "app.ts", "app.bundle.js"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -230,31 230,11 @@ <h3 id="syscalls">Syscall count <a href="#syscalls">#</a></h3> | |
<script src="https://unpkg.com/[email protected]/dist/d3.min.js"></script> | ||
<script src="https://unpkg.com/[email protected]/c3.min.js"></script> | ||
|
||
<script type="module"> | ||
import { drawCharts } from "./app.js"; | ||
window.chartWidth = 800; | ||
const overlay = document.getElementById("spinner-overlay"); | ||
|
||
function showSpinner() { | ||
overlay.style.display = "block"; | ||
} | ||
|
||
function hideSpinner() { | ||
overlay.style.display = "none"; | ||
} | ||
|
||
function updateCharts() { | ||
const u = window.location.hash.match("all") | ||
? "./data.json" | ||
: "recent.json"; | ||
|
||
showSpinner(); | ||
|
||
drawCharts(u).finally(hideSpinner); | ||
} | ||
updateCharts(); | ||
|
||
window.onhashchange = updateCharts; | ||
<!-- Run "deno bundle app.ts" to generate app.bundle.js --> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"></script> | ||
<script src="app.bundle.js"></script> | ||
<script> | ||
requirejs(['app'], (app) => app.main()); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters