Skip to content

Commit

Permalink
chore: script update (ant-design#45937)
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ authored Nov 17, 2023
1 parent dd05e18 commit 29126fe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/ci-mock-project-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,23 @@
# clean up
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
echo "Cloning project..."
git clone https://github.com/ant-design/ant-design-examples.git ~tmpProj --depth=1

# change directory
echo "Changing directory..."
cd ~tmpProj/examples/with-nextjs-inline-style

# install dependencies
echo "Installing dependencies..."
yarn

# build
echo "Building..."
yarn run build

0 comments on commit 29126fe

Please sign in to comment.