Compare commits

..

No commits in common. "079c13e3112a835fc28e60e68ae45a5831ace837" and "c2264c42fc65081257f123ab5ea548575d5330dd" have entirely different histories.

7 changed files with 12 additions and 8 deletions

View File

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

View File

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

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

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

View File

@ -1,7 +1,8 @@
import { Hype } from '@because/hype'
const app = new Hype({ ok: true })
const app = new Hype()
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": "0.0.6",
"@because/hype": "*",
"@because/forge": "*",
"@because/howl": "*"
}

View File

@ -1,8 +1,9 @@
import { Hype } from '@because/hype'
const app = new Hype({ layout: false, ok: true })
const app = new Hype({ layout: false })
// 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,5 +1,7 @@
import { Hype } from '@because/hype'
const app = new Hype({ok: true})
const app = new Hype()
app.get('/ok', c => c.text('ok'))
export default app.defaults