chore(project): compatible windows the shell command (#3550)

This commit is contained in:
btea 2021-09-22 18:18:43 +08:00 committed by GitHub
parent 66e04c95b6
commit d8ea564355
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -28,7 +28,7 @@
"format": "prettier --write .",
"lint": "eslint . --ext .vue,.js,.ts,.jsx,.tsx --max-warnings 0 && prettier --check .",
"lint:fix": "eslint --fix . --ext .vue,.js,.ts,.jsx,.tsx && prettier --write .",
"docs:dev": "if [ ! -d \"dist/element-plus\" ]; then sh scripts/build.sh; fi && yarn docs:gen-locale && cd docs && yarn dev",
"docs:dev": "sh ./scripts/ifBuild.sh && yarn docs:gen-locale && cd docs && yarn dev",
"docs:build": "cd docs && yarn build",
"docs:serve": "cd docs && yarn serve",
"docs:gen-locale": "rimraf docs/.vitepress/i18n && esno build/crowdin-generate.ts",

5
scripts/ifBuild.sh Normal file
View File

@ -0,0 +1,5 @@
#!/bin/sh
if [ ! -d \"dist/element-plus\" ]; then
sh scripts/build.sh;
fi