Skip to content

Commit 2168ce8

Browse files
committed
Fix task names
1 parent 81521cd commit 2168ce8

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed

.github/workflows/lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- run: npm install
1414
- run: npm install
1515
working-directory: ./frontend
16-
- run: npm run lint-vscode
16+
- run: npm run lint
1717
name: Lint VSCode
1818
- run: npm run lint-frontend
1919
name: Lint Frontend
@@ -28,7 +28,7 @@ jobs:
2828
- run: npm install
2929
- run: npm install
3030
working-directory: ./frontend
31-
- run: npm run package
31+
- run: npm run vscode:bundle
3232

3333
test:
3434
runs-on: ubuntu-latest

frontend/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"dev": "vite",
88
"build": "run-p type-check \"build-only {@}\" --",
99
"preview": "vite preview",
10+
"watch": "vite --watch",
1011
"build-only": "vite build",
1112
"type-check": "vue-tsc --build --force",
1213
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
@@ -39,4 +40,4 @@
3940
"vite-plugin-vue-devtools": "^7.3.1",
4041
"vue-tsc": "^2.0.21"
4142
}
42-
}
43+
}

package.json

+16-14
Original file line numberDiff line numberDiff line change
@@ -50,25 +50,27 @@
5050
}
5151
},
5252
"scripts": {
53-
"vscode:prepublish": "npm run compile-frontend && npm run package",
54-
"vscode:bundle": "npm run package && vsce package",
55-
"vscode:install": "npm run bundle && code --install-extension call-graph-0.0.1.vsix",
56-
"vscode:uninstall": "npm run uninstall-extension",
57-
"vscode:publish": "npm run bundle && vsce publish",
58-
"compile": "npm run compile-frontend && webpack",
53+
"vscode:prepublish": "npm run compile-all && npm run vscode:package",
54+
"vscode:bundle": "npm run vscode:package && vsce package",
55+
"vscode:install": "npm run vscode:bundle && code --install-extension call-graph-0.0.1.vsix",
56+
"vscode:uninstall": "code --uninstall k0in.call-graph",
57+
"vscode:package": "npm run compile-frontend && webpack --mode production --devtool hidden-source-map",
58+
"vscode:publish": "npm run vscode:bundle && vsce publish",
59+
"lint-frontend": "cd frontend && npm run lint",
60+
"compile-frontend": "cd frontend && npm run build",
61+
"watch-frontend": "cd frontend && npm run watch",
62+
"lint": "eslint . --ext ts",
63+
"compile": "webpack",
5964
"watch": "npm run compile-frontend && webpack --watch",
60-
"package": "npm run compile-frontend && webpack --mode production --devtool hidden-source-map",
65+
"lint-all": "npm run lint && npm run lint-frontend",
66+
"compile-all": "npm run compile && npm run compile-frontend",
67+
"watch-all": "npm run watch && npm run watch-frontend",
6168
"compile-tests": "tsc -p ./src/ --outDir out",
6269
"watch-tests": "tsc -p ./src/ -w --outDir out",
6370
"pretest": "npm run compile-tests && npm run compile && npm run lint",
64-
"lint": "npm run lint-frontend && npm run lint-vscode",
65-
"lint-frontend": "cd frontend && npm run lint",
66-
"lint-vscode": "eslint . --ext ts",
6771
"test": "vscode-test",
68-
"compile-frontend": "cd frontend && npm run build",
69-
"build": "npm run compile",
70-
"install-deps": "npm i && cd frontend && npm i",
71-
"uninstall-extension": "code --uninstall k0in.call-graph"
72+
"build": "npm run compile-all",
73+
"install-deps": "npm i && cd frontend && npm i"
7274
},
7375
"devDependencies": {
7476
"@types/mocha": "^10.0.7",

0 commit comments

Comments
 (0)