Compare commits
2 Commits
c2264c42fc
...
079c13e311
| Author | SHA1 | Date | |
|---|---|---|---|
| 079c13e311 | |||
| dfdd5c89b4 |
|
|
@ -3,7 +3,7 @@ import { program } from 'commander'
|
||||||
import color from 'kleur'
|
import color from 'kleur'
|
||||||
|
|
||||||
import pkg from '../../package.json'
|
import pkg from '../../package.json'
|
||||||
import { SHA } from './version'
|
import { SHA } from './sha'
|
||||||
import {
|
import {
|
||||||
cronList,
|
cronList,
|
||||||
cronLog,
|
cronLog,
|
||||||
|
|
|
||||||
3
src/cli/sha.ts
Normal file
3
src/cli/sha.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
declare var __GIT_SHA__: string | undefined
|
||||||
|
|
||||||
|
export const SHA: string = __GIT_SHA__ ?? 'dev'
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
declare var __GIT_SHA__: string
|
|
||||||
|
|
||||||
export const SHA: string = typeof __GIT_SHA__ !== 'undefined' ? __GIT_SHA__ : 'dev'
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
import { Hype } from '@because/hype'
|
import { Hype } from '@because/hype'
|
||||||
|
|
||||||
const app = new Hype()
|
const app = new Hype({ ok: true })
|
||||||
|
|
||||||
app.get('/', c => c.text('$$APP_NAME$$'))
|
app.get('/', c => c.text('$$APP_NAME$$'))
|
||||||
app.get('/ok', c => c.text('ok'))
|
|
||||||
|
|
||||||
export default app.defaults
|
export default app.defaults
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
"typescript": "^5.9.2"
|
"typescript": "^5.9.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@because/hype": "*",
|
"@because/hype": "0.0.6",
|
||||||
"@because/forge": "*",
|
"@because/forge": "*",
|
||||||
"@because/howl": "*"
|
"@because/howl": "*"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
import { Hype } from '@because/hype'
|
import { Hype } from '@because/hype'
|
||||||
|
|
||||||
const app = new Hype({ layout: false })
|
const app = new Hype({ layout: false, ok: true })
|
||||||
|
|
||||||
// custom routes go here
|
// custom routes go here
|
||||||
// app.get("/my-custom-routes", (c) => c.text("wild, wild stuff"))
|
// app.get("/my-custom-routes", (c) => c.text("wild, wild stuff"))
|
||||||
app.get('/ok', c => c.text('ok'))
|
|
||||||
|
|
||||||
export default app.defaults
|
export default app.defaults
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
import { Hype } from '@because/hype'
|
import { Hype } from '@because/hype'
|
||||||
|
|
||||||
const app = new Hype()
|
const app = new Hype({ok: true})
|
||||||
|
|
||||||
app.get('/ok', c => c.text('ok'))
|
|
||||||
|
|
||||||
export default app.defaults
|
export default app.defaults
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user