Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
luizbills authored Sep 15, 2023
1 parent d459911 commit 7e9ae3a
Showing 1 changed file with 11 additions and 18 deletions.
29 changes: 11 additions & 18 deletions scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cp -R $DIR $TMP_DIR
cd $TMP_DIR

# PHP syntax checker
if ! command -v php &> /dev/null
if command -v php &> /dev/null
then
echo "Checking PHP syntax..."
find . -type f -name '*.php' ! -path './vendor/*' -print0 | while read -d $'\0' file
Expand Down Expand Up @@ -61,24 +61,17 @@ fi

# delete some dev files
echo "Erasing development files..."
find $TMP_DIR -maxdepth 1 -type d -iname ".*" -exec rm -rf {} \; # delete hidden folders
find $TMP_DIR -maxdepth 1 -type f -iname ".*" -exec rm -rf {} \; # delete hidden files
rm -rf $DEST_DIR
rm -rf .git
rm -rf .github
rm -rf tests
rm -rf docs
rm -rf scripts
rm -rf logs
rm -rf node_modules
rm -f .gitattributes
rm -f .gitignore
rm -f .gitmodules
rm -f .editorconfig
rm -f .prettierrc.json
rm -f package-lock.json
rm -f pnpm-lock.yaml
rm -f composer.lock
rm -f phpunit.xml
rm -f phpunit.xml.dist
rm -Rf node_modules
rm -Rf tests
rm -Rf docs
rm -Rf scripts
rm -Rf logs
rm -Rf *lock*
rm -f *phpunit.xml*
rm -f *phpstan*
rm -f README.md
rm -f CONTRIBUTING.md

Expand Down

0 comments on commit 7e9ae3a

Please sign in to comment.