Skip to content

Commit

Permalink
more status warning on execution
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Jun 11, 2020
1 parent de6dc6f commit 1f193ed
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion generator/composer.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ function remove_specific_composer_respositories( $package, $composer ) {
* @return array
*/
function remove_composer_packages( $composer ) {
global $config;
global $config, $clio, $info;
$clio->styleLine( '😎 Remove Composer packages', $info );
foreach ( $config as $key => $value ) {
if ( strpos( $key, 'libraries_' ) !== false ) {
if ( empty( $value ) ) {
Expand Down
7 changes: 6 additions & 1 deletion generator/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,13 @@
execute_generator( $config );
// Done!
echo PHP_EOL;
$clio->styleLine( 'Last cleanings!', $info );
remove_empty_folders();
// Another round to remove the folder that wasn't cleaned at first round
remove_empty_folders();
$clio->styleLine( 'Done, I am superfast!', $info );
$clio->styleLine( 'Don\'t forget to look on https://github.com/WPBP/WordPress-Plugin-Boilerplate-Powered/wiki', $info );
$clio->styleLine( '', $info );
$clio->styleLine( '👉 Don\'t forget to look on https://wpbp.github.io/wiki.html', $info );
$clio->styleLine( '', $info );
$clio->styleLine( 'Love WordPress-Plugin-Boilerplate-Powered? Please consider supporting our collective:', $info );
$clio->styleLine( '👉 https://opencollective.com/WordPress-Plugin-Boilerplate-Powered/donate', $info );
1 change: 1 addition & 0 deletions generator/rename.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function get_files( $path = null ) {

$files = $list = array();
$clio->styleLine( 'Rename in progress', $info );
$clio->styleLine( 'Remove in progress', $info );
$dir_iterator = new RecursiveDirectoryIterator( $path, FilesystemIterator::SKIP_DOTS );
$iterator = new RecursiveIteratorIterator( $dir_iterator, RecursiveIteratorIterator::SELF_FIRST );

Expand Down

0 comments on commit 1f193ed

Please sign in to comment.