Skip to content

Commit

Permalink
Remove ui code
Browse files Browse the repository at this point in the history
  • Loading branch information
qianmoQ committed Jul 13, 2024
1 parent 7492c7a commit 82ad6e6
Show file tree
Hide file tree
Showing 143 changed files with 193 additions and 2,871 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ dist-ssr
*.sln
*.sw?
yarn.lock
src/components/ui
43 changes: 43 additions & 0 deletions configure/publish/publish-newVersion.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/sh
VERSION=$1
HOME=$(pwd)

job_before_echo_basic() {
printf "\n\tJob before echo basic \n"
printf "============================================\n"
printf "Released new version\n"
printf "============================================\n\n"
}

job_before_checked() {
printf "\n\tJob before check parameter \n"
printf "============================================\n"
if test -z "$VERSION"; then
printf "Please input version \n"
exit 1
else
printf "Version checked successful | %s\n" "$VERSION"
fi
printf "============================================\n\n"
}

job_runner_apply() {
printf "\n\tJob runner apply \n"
printf "============================================\n"

printf "Apply new version for web ...\n"
npm version "$VERSION" --no-git-tag-version

if [ $? -ne 0 ]; then
printf "\nApply new version for web failed\n\n"
exit 1
else
printf "\nApply new version for web successful\n\n"
fi
cd "$HOME"
printf "============================================\n\n"
}

job_before_echo_basic
job_before_checked
job_runner_apply
Loading

0 comments on commit 82ad6e6

Please sign in to comment.