Skip to content

Commit 5740283

Browse files
committed
Add npm start script alias for npm run serve
1 parent 75e8fc6 commit 5740283

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
# Requires Git to check out files with the LF (not CRLF) line endings for files it automatically recognizes as being text-based
2+
# The `*` targets all files
3+
# The `text=auto` makes it apply a conversion only to files detected as text-based
4+
# The `eol=lf` sets the conversion to an LF line ending
5+
# https://git-scm.com/docs/gitattributes
16
* text=auto eol=lf

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"description": "Graphite's web app frontend. Planned to be replaced by a native GUI written in Rust in the future.",
44
"private": true,
55
"scripts": {
6+
"start": "vue-cli-service serve || (npm install && vue-cli-service serve)",
67
"serve": "vue-cli-service serve || (npm install && vue-cli-service serve)",
78
"build": "vue-cli-service build || (npm install && vue-cli-service build)",
89
"lint": "vue-cli-service lint || echo There were lint errors. If the linter execution fails, try running `npm install` first.",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"description": "A convenience package for calling the real package.json in ./frontend",
33
"private": true,
44
"scripts": {
5+
"start": "cd frontend && npm run serve",
56
"serve": "cd frontend && npm run serve",
67
"build": "cd frontend && npm run build",
78
"lint": "cd frontend && npm run lint",

0 commit comments

Comments
 (0)