mirror of https://github.com/nuxt/nuxt.git
eslint
This commit is contained in:
parent
13a4e71a83
commit
61534431a9
|
@ -59,6 +59,7 @@ export default class Builder extends Tapable {
|
|||
if (this.options.dev) {
|
||||
// Don't await for builder in dev (faster startup)
|
||||
this.build().catch(err => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(err)
|
||||
process.exit(1)
|
||||
})
|
||||
|
@ -407,7 +408,7 @@ export default class Builder extends Tapable {
|
|||
router.forEach((r) => {
|
||||
if (!r.path.includes(':') && !r.path.includes('*')) {
|
||||
if (r.children) {
|
||||
flatRoutes(r.children, path + r.path + '/', routes)
|
||||
this.flatRoutes(r.children, path + r.path + '/', routes)
|
||||
} else {
|
||||
routes.push((r.path === '' && path[path.length - 1] === '/' ? path.slice(0, -1) : path) + r.path)
|
||||
}
|
||||
|
|
|
@ -57,6 +57,7 @@ export default class Nuxt extends Tapable {
|
|||
this.buildDir = options.buildDir
|
||||
|
||||
// Wait for all core components be ready
|
||||
// eslint-disable-next-line no-console
|
||||
this._ready = this.ready().catch(console.error)
|
||||
}
|
||||
|
||||
|
@ -98,7 +99,8 @@ export default class Nuxt extends Tapable {
|
|||
}
|
||||
await this.moduleContainer.ready()
|
||||
await this.builder.ready()
|
||||
console.log('Nuxt Ready!')
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('[nuxt] ready')
|
||||
return this
|
||||
}
|
||||
|
||||
|
@ -131,4 +133,3 @@ export default class Nuxt extends Tapable {
|
|||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ setAnsiColors(ansiHTML)
|
|||
let jsdom = null
|
||||
|
||||
export default class Renderer extends Tapable {
|
||||
|
||||
constructor (nuxt) {
|
||||
super()
|
||||
this.nuxt = nuxt
|
||||
|
|
Loading…
Reference in New Issue