Try to remove an requires-devs scripts

This commit is contained in:
Nabeel Shahzad 2018-08-20 11:24:32 -05:00
parent 299f391455
commit ffccb01670
2 changed files with 28 additions and 15 deletions

View File

@ -28,22 +28,25 @@ if [ "$TRAVIS" = "true" ]; then
echo "Cleaning files" echo "Cleaning files"
rm -rf vendor
composer install --no-dev --prefer-dist --no-interaction --verbose
# Clean up the dependencies to remove some of the dev packages # Clean up the dependencies to remove some of the dev packages
composer remove \ # declare -a remove_packages=(
--optimize-autoloader \ # 'barryvdh/laravel-ide-helper'
--no-interaction \ # 'bpocallaghan/generators'
--update-with-dependencies \ # 'codedungeon/phpunit-result-printer'
phpstan/phpstan \ # 'fzaninotto/faker'
weebly/phpstan-laravel \ # 'nikic/php-parser'
bpocallaghan/generators \ # 'phpstan/phpstan'
barryvdh/laravel-ide-helper # 'phpunit/phpunit',
# 'weebly/phpstan-laravel'
find ./vendor -type d -name ".git" -print0 | xargs rm -rf # )
find . -type d -name "sass-cache" -print0 | xargs rm -rf #
# for pkg in "${remove_packages[@]}"
# clear any app specific stuff that might have been loaded in # do
find storage/app/public -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} + # composer --optimize-autoloader --no-interaction remove $pkg
find storage/app -mindepth 1 -not -name '.gitignore' -not -name public -not -name import -print0 -exec rm -rf {} + # done
# Leftover individual files to delete # Leftover individual files to delete
declare -a remove_files=( declare -a remove_files=(
@ -54,8 +57,10 @@ if [ "$TRAVIS" = "true" ]; then
.dpl .dpl
.phpstorm.meta.php .phpstorm.meta.php
_ide_helper.php _ide_helper.php
test
env.php env.php
config.php config.php
Makefile
phpunit.xml phpunit.xml
phpvms.iml phpvms.iml
Procfile Procfile
@ -70,6 +75,13 @@ if [ "$TRAVIS" = "true" ]; then
rm -rf $file rm -rf $file
done done
find ./vendor -type d -name ".git" -print0 | xargs rm -rf
find . -type d -name "sass-cache" -print0 | xargs rm -rf
# clear any app specific stuff that might have been loaded in
find storage/app/public -mindepth 1 -not -name '.gitignore' -print0 -exec rm -rf {} +
find storage/app -mindepth 1 -not -name '.gitignore' -not -name public -not -name import -print0 -exec rm -rf {} +
make clean make clean
echo "Creating Tarball" echo "Creating Tarball"

View File

@ -6,6 +6,7 @@
"type": "project", "type": "project",
"minimum-stability": "stable", "minimum-stability": "stable",
"homepage": "http://www.phpvms.net", "homepage": "http://www.phpvms.net",
"optimize-autoloader": true,
"require": { "require": {
"php": ">=7.1", "php": ">=7.1",
"laravel/framework": "^5.6", "laravel/framework": "^5.6",