From fd42610862ec4f0d53289647c44c7b907d577512 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Fri, 24 Nov 2017 10:35:03 +0800 Subject: [PATCH] fix: lint error in bin --- bin/nuxt-build | 8 ++++---- bin/nuxt-dev | 2 +- bin/nuxt-generate | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bin/nuxt-build b/bin/nuxt-build index c5b89eea90..53393a42ea 100755 --- a/bin/nuxt-build +++ b/bin/nuxt-build @@ -82,19 +82,19 @@ if (options.mode !== 'spa') { } else { const s = Date.now() - nuxt.hook('generate:distRemoved', function() { + nuxt.hook('generate:distRemoved', function () { debug('Destination folder cleaned') }) - nuxt.hook('generate:distCopied', function() { + nuxt.hook('generate:distCopied', function () { debug('Static & build files copied') }) - nuxt.hook('generate:page', function(page) { + nuxt.hook('generate:page', function (page) { debug('Generate file: ' + page.path) }) - nuxt.hook('generate:done', function(generator, errors) { + nuxt.hook('generate:done', function (generator, errors) { const duration = Math.round((Date.now() - s) / 100) / 10 debug(`HTML Files generated in ${duration}s`) diff --git a/bin/nuxt-dev b/bin/nuxt-dev index b8817cb627..28266f1e92 100755 --- a/bin/nuxt-dev +++ b/bin/nuxt-dev @@ -77,7 +77,7 @@ chokidar .on('all', () => { debug('[nuxt.config.js] changed') needToRestart = true - + dev = dev.then((instance) => { if (needToRestart === false) return instance needToRestart = false diff --git a/bin/nuxt-generate b/bin/nuxt-generate index f45b04d613..c9fa725982 100755 --- a/bin/nuxt-generate +++ b/bin/nuxt-generate @@ -73,19 +73,19 @@ const generateOptions = { const s = Date.now() -nuxt.hook('generate:distRemoved', function() { +nuxt.hook('generate:distRemoved', function () { debug('Destination folder cleaned') }) -nuxt.hook('generate:distCopied', function() { +nuxt.hook('generate:distCopied', function () { debug('Static & build files copied') }) -nuxt.hook('generate:page', function(page) { +nuxt.hook('generate:page', function (page) { debug('Generate file: ' + page.path) }) -nuxt.hook('generate:done', function(generator, errors) { +nuxt.hook('generate:done', function (generator, errors) { const duration = Math.round((Date.now() - s) / 100) / 10 debug(`HTML Files generated in ${duration}s`)