Add npm start script alias for npm run serve

This commit is contained in:
Keavon Chambers
2022-01-12 06:14:32 -08:00
parent 97db01ebac
commit df9977194b
3 changed files with 7 additions and 0 deletions

5
.gitattributes vendored
View File

@@ -1 +1,6 @@
# Requires Git to check out files with the LF (not CRLF) line endings for files it automatically recognizes as being text-based
# The `*` targets all files
# The `text=auto` makes it apply a conversion only to files detected as text-based
# The `eol=lf` sets the conversion to an LF line ending
# https://git-scm.com/docs/gitattributes
* text=auto eol=lf

View File

@@ -3,6 +3,7 @@
"description": "Graphite's web app frontend. Planned to be replaced by a native GUI written in Rust in the future.",
"private": true,
"scripts": {
"start": "vue-cli-service serve || (npm install && vue-cli-service serve)",
"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 || echo There were lint errors. If the linter execution fails, try running `npm install` first.",

View File

@@ -2,6 +2,7 @@
"description": "A convenience package for calling the real package.json in ./frontend",
"private": true,
"scripts": {
"start": "cd frontend && npm run serve",
"serve": "cd frontend && npm run serve",
"build": "cd frontend && npm run build",
"lint": "cd frontend && npm run lint",