mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 03:37:38 +00:00
Add linter script
Fix issue with running `cd src/handbook` while in the handbook directory for building
This commit is contained in:
parent
4664a21fab
commit
bb20d0fd80
2
.github/workflows/handbook.yml
vendored
2
.github/workflows/handbook.yml
vendored
@ -74,7 +74,7 @@ jobs:
|
|||||||
run: npm install
|
run: npm install
|
||||||
- name: Build handbook
|
- name: Build handbook
|
||||||
working-directory: src/handbook
|
working-directory: src/handbook
|
||||||
run: cd src/handbook && npm run build
|
run: npm run build
|
||||||
- name: Upload build
|
- name: Upload build
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "tsc && vite build",
|
"build": "tsc && vite build",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview",
|
||||||
|
|
||||||
|
"lint": "npx prettier --write \"src/handbook/**/*.{ts,tsx,js,jsx,json,md}\""
|
||||||
},
|
},
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
Loading…
Reference in New Issue
Block a user