fix(client scripts): add output and fix linting

This commit is contained in:
Matteo Pagliazzi 2019-10-24 14:29:47 +02:00
parent cab6b35e49
commit 78946bf328
2 changed files with 6 additions and 2 deletions

View file

@ -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": {

View file

@ -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',
});
}