mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
chore(project): compatible windows the shell command (#3550)
This commit is contained in:
parent
66e04c95b6
commit
d8ea564355
@ -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
5
scripts/ifBuild.sh
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ ! -d \"dist/element-plus\" ]; then
|
||||
sh scripts/build.sh;
|
||||
fi
|
Loading…
Reference in New Issue
Block a user