chore: optimize lint script

This commit is contained in:
mutoe 2021-02-28 01:15:55 +08:00
parent 7ad4ab0bb3
commit 8e12e4af44
2 changed files with 9 additions and 6 deletions

View File

@ -32,11 +32,14 @@ jobs:
- name: Install dependencies
run: yarn install --skip-integrity-check --non-interactive --no-progress
- name: Lint
run: |
yarn tsc
yarn lint
yarn lint:vti
- name: TypeScript check
run: yarn tsc
- name: Eslint check
run: yarn lint:script
- name: Vetur check
run: yarn lint:vti
- name: Unit test
run: yarn test:unit

View File

@ -7,7 +7,7 @@
"build": "vite build",
"lint:script": "eslint \"{src,cypress}/**/*.{js,ts,vue}\"",
"lint:vti": "vti diagnostics",
"lint": "yarn tsc && yarn lint:script && yarn lint:vti",
"lint": "concurrently 'yarn tsc' 'yarn lint:script' 'yarn lint:vti'",
"test:unit": "jest --coverage",
"test:e2e": "yarn build && concurrently -k \"serve dist\" \"cypress run -c baseUrl=http://localhost:5000\"",
"test:e2e:ci": "cypress run -C cypress.prod.json",