mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
generate: exit when done and send back duration & errors
This commit is contained in:
parent
92951853fc
commit
7760e9a49b
@ -24,6 +24,7 @@ var nuxt = module.exports = new Nuxt(options)
|
|||||||
nuxt.generate()
|
nuxt.generate()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
console.log('[nuxt] Generate done') // eslint-disable-line no-console
|
console.log('[nuxt] Generate done') // eslint-disable-line no-console
|
||||||
|
process.exit(0)
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error(err) // eslint-disable-line no-console
|
console.error(err) // eslint-disable-line no-console
|
||||||
|
@ -158,4 +158,5 @@ export default async function () {
|
|||||||
})
|
})
|
||||||
console.error('==== Error report ==== \n' + report.join('\n\n')) // eslint-disable-line no-console
|
console.error('==== Error report ==== \n' + report.join('\n\n')) // eslint-disable-line no-console
|
||||||
}
|
}
|
||||||
|
return { duration, errors }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user