mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
17 lines
457 B
TypeScript
17 lines
457 B
TypeScript
import consola from 'consola'
|
|
import buildCommand from './build'
|
|
import { defineNuxtCommand } from './index'
|
|
|
|
export default defineNuxtCommand({
|
|
meta: {
|
|
name: 'generate',
|
|
usage: 'npx nuxi generate [rootDir]',
|
|
description: 'Build Nuxt and prerender static routes'
|
|
},
|
|
async invoke (args) {
|
|
args.prerender = true
|
|
await buildCommand.invoke(args)
|
|
consola.success('You can now deploy `.output/public` to any static hosting!')
|
|
}
|
|
})
|