2023-03-15 10:51:14 +08:00
|
|
|
# Create a umi project
|
|
|
|
|
|
|
|
# clean up
|
|
|
|
rm -rf ~tmpProj/
|
|
|
|
|
2023-11-17 10:26:03 +08:00
|
|
|
# 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 `''`
|
|
|
|
|
2023-03-15 10:51:14 +08:00
|
|
|
# clone project
|
2023-11-17 10:26:03 +08:00
|
|
|
echo "Cloning project..."
|
2023-07-10 14:25:07 +08:00
|
|
|
git clone https://github.com/ant-design/ant-design-examples.git ~tmpProj --depth=1
|
2023-03-15 10:51:14 +08:00
|
|
|
|
2023-03-21 14:18:43 +08:00
|
|
|
# change directory
|
2023-11-17 10:26:03 +08:00
|
|
|
echo "Changing directory..."
|
2023-07-10 14:25:07 +08:00
|
|
|
cd ~tmpProj/examples/with-nextjs-inline-style
|
2023-03-21 14:18:43 +08:00
|
|
|
|
|
|
|
# install dependencies
|
2023-11-17 10:26:03 +08:00
|
|
|
echo "Installing dependencies..."
|
2023-03-15 23:04:47 +08:00
|
|
|
yarn
|
2023-03-15 10:51:14 +08:00
|
|
|
|
|
|
|
# build
|
2023-11-17 10:26:03 +08:00
|
|
|
echo "Building..."
|
2023-03-21 14:18:43 +08:00
|
|
|
yarn run build
|