Unverified Commit 5d197989 authored by liuzhe-lz's avatar liuzhe-lz Committed by GitHub
Browse files

add webui sanity-check command (#4535)

parent abd164c2
...@@ -81,12 +81,8 @@ stages: ...@@ -81,12 +81,8 @@ stages:
- script: | - script: |
set -e set -e
yarn --cwd ts/webui yarn --cwd ts/webui
yarn --cwd ts/webui eslint yarn --cwd ts/webui sanity-check
displayName: ESLint (WebUI) displayName: Sanity check (WebUI)
- script: |
yarn --cwd ts/webui tsc
displayName: Type Check (WebUI)
# To reduce debug cost, steps are sorted differently on each platform, # To reduce debug cost, steps are sorted differently on each platform,
......
...@@ -93,8 +93,10 @@ ...@@ -93,8 +93,10 @@
"start": "node --max-old-space-size=3072 scripts/start.js", "start": "node --max-old-space-size=3072 scripts/start.js",
"build": "node --max-old-space-size=3072 scripts/developmentBuild.js", "build": "node --max-old-space-size=3072 scripts/developmentBuild.js",
"release": "node --max-old-space-size=3072 scripts/productionBuild.js", "release": "node --max-old-space-size=3072 scripts/productionBuild.js",
"sanity-check": "yarn sanity-check:tsc && yarn sanity-check:eslint",
"sanity-check:tsc": "tsc",
"sanity-check:eslint": "eslint ./ --ext .tsx,.ts",
"test": "node --max-old-space-size=3072 scripts/test.js", "test": "node --max-old-space-size=3072 scripts/test.js",
"eslint": "npx eslint ./ --ext .tsx,.ts",
"stylelint": "npx stylelint **/*{.css,.scss}", "stylelint": "npx stylelint **/*{.css,.scss}",
"mock": "node scripts/server.js", "mock": "node scripts/server.js",
"dev": "concurrently \"yarn mock\" \"yarn start\"" "dev": "concurrently \"yarn mock\" \"yarn start\""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment