
* refactor: move cli to core * feat: move cli to core - use route-middleware in serve - eliminate need for `routes` dir in app * feat: use route-middleware in build * chore: update test gh action
22 lines
394 B
JavaScript
22 lines
394 B
JavaScript
#!/usr/bin/env node
|
|
|
|
import { consola } from 'consola'
|
|
import { defineCommand } from 'citty'
|
|
|
|
function generate() {
|
|
consola.box('Generate a McFly building block (In-progress)')
|
|
}
|
|
|
|
export default defineCommand({
|
|
meta: {
|
|
name: 'generate',
|
|
description: 'Generates building blocks for a McFly app.',
|
|
},
|
|
run() {
|
|
generate()
|
|
},
|
|
})
|
|
|
|
export const exportedForTest = {
|
|
generate,
|
|
}
|