From 526a647ce1eb89f36892302b4ad8ad33a5f38b53 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sat, 31 Mar 2018 23:28:04 +0430 Subject: [PATCH] misc: improve cli --- lib/builder/builder.js | 4 ++-- lib/builder/generator.js | 6 +++--- package.json | 4 ++-- yarn.lock | 16 ++++++++-------- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/builder/builder.js b/lib/builder/builder.js index f6d4020860..d332317e85 100644 --- a/lib/builder/builder.js +++ b/lib/builder/builder.js @@ -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 = [ diff --git a/lib/builder/generator.js b/lib/builder/generator.js index 3466c870df..bfff2353d9 100644 --- a/lib/builder/generator.js +++ b/lib/builder/generator.js @@ -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) diff --git a/package.json b/package.json index cd3605c6bd..fcd9d6cd22 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/yarn.lock b/yarn.lock index ca2b048bab..dc4ee21d68 100644 --- a/yarn.lock +++ b/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"