chore: script update (#45937)

This commit is contained in:
二货爱吃白萝卜 2023-11-17 10:26:03 +08:00 committed by GitHub
parent dd05e18bca
commit 29126fe69c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,14 +3,23 @@
# clean up # clean up
rm -rf ~tmpProj/ rm -rf ~tmpProj/
# clean up `packageManager` since this will block yarn install
echo "Cleaning up package.json..."
sed -i '/packageManager/d' 'package.json' # linux no need for `''`
sed -i '' '/packageManager/d' 'package.json' # mac need `''`
# clone project # clone project
echo "Cloning project..."
git clone https://github.com/ant-design/ant-design-examples.git ~tmpProj --depth=1 git clone https://github.com/ant-design/ant-design-examples.git ~tmpProj --depth=1
# change directory # change directory
echo "Changing directory..."
cd ~tmpProj/examples/with-nextjs-inline-style cd ~tmpProj/examples/with-nextjs-inline-style
# install dependencies # install dependencies
echo "Installing dependencies..."
yarn yarn
# build # build
echo "Building..."
yarn run build yarn run build