From 78946bf328fb6c8b63c47806d4f639144896f3c1 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Thu, 24 Oct 2019 14:29:47 +0200 Subject: [PATCH] fix(client scripts): add output and fix linting --- website/client/package.json | 2 +- website/client/scripts/npm-postinstall.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/website/client/package.json b/website/client/package.json index 9629f78772..f59082ba80 100644 --- a/website/client/package.json +++ b/website/client/package.json @@ -6,7 +6,7 @@ "serve": "vue-cli-service serve", "build": "vue-cli-service build", "test:unit": "vue-cli-service test:unit --require ./tests/unit/helpers.js", - "lint": "vue-cli-service lint", + "lint": "vue-cli-service lint .", "postinstall": "node ./scripts/npm-postinstall.js" }, "dependencies": { diff --git a/website/client/scripts/npm-postinstall.js b/website/client/scripts/npm-postinstall.js index 6d1b3e4d21..da02c161c3 100644 --- a/website/client/scripts/npm-postinstall.js +++ b/website/client/scripts/npm-postinstall.js @@ -1,5 +1,9 @@ +/* eslint-disable import/no-commonjs */ + const { execSync } = require('child_process'); if (process.env.NODE_ENV === 'production') { - execSync('npm run build'); + execSync('npm run build', { + stdio: 'inherit', + }); }