Nuxt/test/fixtures/cli/cli.gen.config.js
pooya parsa e7cc2757c3 refactor: update eslint-config to 1.x
Co-authored-by: Alexander Lichter <manniL@gmx.net>
2019-07-10 15:15:49 +04:30

17 lines
373 B
JavaScript

export default {
test: true,
buildDir: '.nuxt-generate/build',
generate: {
dir: '.nuxt-generate/generate'
},
hooks (hook) {
hook('generate:done', (generator, errors) => {
if (!errors || errors.length === 0) {
process.stdout.write('Generated successfully')
} else {
process.stderr.write('Generated failed')
}
})
}
}