Compare commits

..

2 Commits

Author SHA1 Message Date
079c13e311 upgrade hype in templates 2026-03-05 07:44:07 -08:00
dfdd5c89b4 sha in toes cli 2026-03-05 07:43:59 -08:00
7 changed files with 8 additions and 12 deletions

View File

@ -3,7 +3,7 @@ import { program } from 'commander'
import color from 'kleur'
import pkg from '../../package.json'
import { SHA } from './version'
import { SHA } from './sha'
import {
cronList,
cronLog,

3
src/cli/sha.ts Normal file
View File

@ -0,0 +1,3 @@
declare var __GIT_SHA__: string | undefined
export const SHA: string = __GIT_SHA__ ?? 'dev'

View File

@ -1,3 +0,0 @@
declare var __GIT_SHA__: string
export const SHA: string = typeof __GIT_SHA__ !== 'undefined' ? __GIT_SHA__ : 'dev'

View File

@ -1,8 +1,7 @@
import { Hype } from '@because/hype'
const app = new Hype()
const app = new Hype({ ok: true })
app.get('/', c => c.text('$$APP_NAME$$'))
app.get('/ok', c => c.text('ok'))
export default app.defaults

View File

@ -18,7 +18,7 @@
"typescript": "^5.9.2"
},
"dependencies": {
"@because/hype": "*",
"@because/hype": "0.0.6",
"@because/forge": "*",
"@because/howl": "*"
}

View File

@ -1,9 +1,8 @@
import { Hype } from '@because/hype'
const app = new Hype({ layout: false })
const app = new Hype({ layout: false, ok: true })
// custom routes go here
// app.get("/my-custom-routes", (c) => c.text("wild, wild stuff"))
app.get('/ok', c => c.text('ok'))
export default app.defaults

View File

@ -1,7 +1,5 @@
import { Hype } from '@because/hype'
const app = new Hype()
app.get('/ok', c => c.text('ok'))
const app = new Hype({ok: true})
export default app.defaults