Improve ergonomics of npm build system

This commit is contained in:
Keavon Chambers
2021-04-10 19:20:10 -07:00
parent 4d10459a7b
commit 1ecff2e04e
4 changed files with 258 additions and 99 deletions
+5 -4
View File
@@ -4,9 +4,9 @@
"description": "Graphite's web app frontend. Planned to be replaced by a Rust native GUI framework in the future.",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
"serve": "vue-cli-service serve || npm install && vue-cli-service serve",
"build": "vue-cli-service build || npm install && vue-cli-service build",
"lint": "vue-cli-service lint || npm install && vue-cli-service lint"
},
"repository": {
"type": "git",
@@ -38,7 +38,8 @@
"sass-loader": "^8.0.2",
"typescript": "~3.9.3",
"vue-svg-loader": "^0.17.0-beta.2",
"vue-template-compiler": "^2.6.12"
"vue-template-compiler": "^2.6.12",
"wasm-pack": "^0.9.1"
},
"gitHooks": {
"pre-commit": "lint-staged"