chore: optimize lint script
This commit is contained in:
parent
7ad4ab0bb3
commit
8e12e4af44
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue