Compare commits
3 Commits
f06425f7ff
...
6c493a667d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6c493a667d | ||
|
|
ff88168e63 | ||
|
|
062640c390 |
4
bin/version.ts
Normal file
4
bin/version.ts
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
import { GIT_SHA } from "@/config"
|
||||
export default function () {
|
||||
return GIT_SHA
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
////
|
||||
// version: 1d6a7bc
|
||||
// version: ff88168
|
||||
|
||||
// src/js/dom.ts
|
||||
var cmdLine = $("command-line");
|
||||
|
|
|
|||
|
|
@ -13,4 +13,4 @@ export const NOSE_WWW = join(NOSE_DIR, "www")
|
|||
export const NOSE_DATA = resolve("./data")
|
||||
|
||||
export const NOSE_STARTED = Date.now()
|
||||
export const GIT_SHA = (await $`git rev-parse HEAD`.text()).trim()
|
||||
export const GIT_SHA = (await $`git rev-parse --short HEAD`.text()).trim()
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
import type { FC } from "hono/jsx"
|
||||
import { GIT_SHA } from "../config"
|
||||
|
||||
export const Layout: FC = async ({ children, title }) => (
|
||||
<html lang="en">
|
||||
|
|
@ -12,7 +13,7 @@ export const Layout: FC = async ({ children, title }) => (
|
|||
<link href="/css/game.css" rel="stylesheet" />
|
||||
|
||||
<script type="importmap" dangerouslySetInnerHTML={{ __html: `{ "imports": { "@/": "/" } }` }} />
|
||||
<script src={process.env.NODE_ENV === "production" ? "/bundle.js" : "/js/main.js"} type="module" async></script>
|
||||
<script src={process.env.NODE_ENV === "production" ? `/bundle.js?${GIT_SHA}` : "/js/main.js"} type="module" async></script>
|
||||
</head>
|
||||
<body data-mode="tall">
|
||||
<main>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user