Removes .vue, .scss, .sass and empty folders from files that are sent to the wordpress repo #401

This commit is contained in:
mateuswetah 2020-11-17 09:31:37 -03:00
parent f33f1b9ee9
commit 55bbdfe4de
1 changed files with 5 additions and 1 deletions

View File

@ -78,6 +78,10 @@ rsync -axz --exclude='vendor/bin/phpc*' --exclude='vendor/squizlabs' --exclude='
src/* $wp_plugin_dir/
rm -rf $wp_plugin_dir/scss
find $wp_plugin_dir/views/ -type f -name '*.js' ! -path "${wp_plugin_dir}/views/libs/*" -exec rm {} +
find $wp_plugin_dir/views/ -type f -name '*.vue' -exec rm {} +
find $wp_plugin_dir/views/ -type f -name '*.scss' -exec rm {} +
find $wp_plugin_dir/views/ -type f -name '*.sass' -exec rm {} +
find $wp_plugin_dir/views/ -type f -name '*.js' ! -path "${wp_plugin_dir}/views/libs/*" -exec rm {} +
find $wp_plugin_dir/views/ -type d -empty -delete
echo "Build complete!"