mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
misc: improve cli
This commit is contained in:
parent
923164ec25
commit
526a647ce1
@ -99,7 +99,7 @@ export default class Builder {
|
||||
}
|
||||
this._buildStatus = STATUS.BUILDING
|
||||
|
||||
logger.start('Initializing builder')
|
||||
logger.debug('Initializing builder')
|
||||
|
||||
// Wait for nuxt ready
|
||||
await this.nuxt.ready()
|
||||
@ -151,7 +151,7 @@ export default class Builder {
|
||||
}
|
||||
|
||||
async generateRoutesAndFiles() {
|
||||
logger.start(`Generating nuxt files...`)
|
||||
logger.debug(`Generating nuxt files`)
|
||||
|
||||
// -- Templates --
|
||||
let templatesFiles = [
|
||||
|
@ -25,15 +25,15 @@ export default class Generator {
|
||||
}
|
||||
|
||||
async generate({ build = true, init = true } = {}) {
|
||||
logger.start('Initializing generator...')
|
||||
logger.debug('Initializing generator...')
|
||||
|
||||
await this.initiate({ build, init })
|
||||
|
||||
logger.start('Preparing routes for generate...')
|
||||
logger.debug('Preparing routes for generate...')
|
||||
|
||||
const routes = await this.initRoutes()
|
||||
|
||||
logger.start('Generating pages...')
|
||||
logger.debug('Generating pages...')
|
||||
|
||||
const errors = await this.generateRoutes(routes)
|
||||
|
||||
|
@ -80,7 +80,7 @@
|
||||
"chokidar": "^2.0.3",
|
||||
"compression": "^1.7.1",
|
||||
"connect": "^3.6.5",
|
||||
"consola": "^1.0.0",
|
||||
"consola": "^1.1.1",
|
||||
"css-loader": "^0.28.11",
|
||||
"es6-promise": "^4.2.4",
|
||||
"esm": "^3.0.14",
|
||||
@ -130,7 +130,7 @@
|
||||
"webpack-dev-middleware": "^3.1.0",
|
||||
"webpack-hot-middleware": "^2.21.2",
|
||||
"webpack-node-externals": "^1.6.0",
|
||||
"webpackbar": "^2.2.1"
|
||||
"webpackbar": "^2.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-eslint": "^8.2.1",
|
||||
|
16
yarn.lock
16
yarn.lock
@ -1719,12 +1719,12 @@ connect@^3.6.5:
|
||||
parseurl "~1.3.2"
|
||||
utils-merge "1.0.1"
|
||||
|
||||
consola@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/consola/-/consola-1.0.0.tgz#4d2a5535abc89078c73593c41e42e66eddd7d5f3"
|
||||
consola@^1.1.1:
|
||||
version "1.1.1"
|
||||
resolved "https://registry.yarnpkg.com/consola/-/consola-1.1.1.tgz#282566e34573d33f01e3c0aca0cd6d383f82925c"
|
||||
dependencies:
|
||||
figures "^2.0.0"
|
||||
ora "^2.0.0"
|
||||
lodash "^4.17.5"
|
||||
std-env "^1.1.0"
|
||||
|
||||
console-browserify@^1.1.0:
|
||||
@ -7575,12 +7575,12 @@ webpack@^4.4.1:
|
||||
watchpack "^1.5.0"
|
||||
webpack-sources "^1.0.1"
|
||||
|
||||
webpackbar@^2.2.1:
|
||||
version "2.2.1"
|
||||
resolved "https://registry.yarnpkg.com/webpackbar/-/webpackbar-2.2.1.tgz#99d709239303fa183f0fa3e0400eecc5dc904211"
|
||||
webpackbar@^2.3.1:
|
||||
version "2.3.1"
|
||||
resolved "https://registry.yarnpkg.com/webpackbar/-/webpackbar-2.3.1.tgz#cbaee8c500ad18efe3bfa81aad79c575e1c38420"
|
||||
dependencies:
|
||||
chalk "^2.3.2"
|
||||
consola "^1.0.0"
|
||||
consola "^1.1.1"
|
||||
figures "^2.0.0"
|
||||
loader-utils "^1.1.0"
|
||||
lodash "^4.17.5"
|
||||
|
Loading…
Reference in New Issue
Block a user