Nuxt/test/fixtures/cli/cli.gen.config.js

17 lines
372 B
JavaScript
Raw Normal View History

export default {
2018-10-24 13:46:06 +00:00
test: true,
buildDir: '.nuxt-generate/build',
generate: {
2018-10-24 13:46:06 +00:00
dir: '.nuxt-generate/generate'
},
hooks(hook) {
hook('generate:done', (generator, errors) => {
if (!errors || errors.length === 0) {
2018-08-12 12:39:43 +00:00
process.stdout.write('Generated successfully')
} else {
2018-08-12 12:39:43 +00:00
process.stderr.write('Generated failed')
}
})
}
}