mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-13 17:52:22 +00:00
fix(client scripts): add output and fix linting
This commit is contained in:
parent
cab6b35e49
commit
78946bf328
2 changed files with 6 additions and 2 deletions
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue