From 55bbdfe4de1023a96f2663254f8be62da1762360 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Tue, 17 Nov 2020 09:31:37 -0300 Subject: [PATCH] Removes .vue, .scss, .sass and empty folders from files that are sent to the wordpress repo #401 --- build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 329a80255..afeaf73de 100755 --- a/build.sh +++ b/build.sh @@ -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!"