Loading bs_base.drush.inc +6 −6 Original line number Diff line number Diff line Loading @@ -7,10 +7,10 @@ use Drupal\Core\DrupalKernel; use Drupal\Core\Extension\ExtensionDiscovery; use Drush\Log\LogLevel; use Drupal\Component\Serialization\Yaml; use Drupal\Core\Extension\Discovery\RecursiveExtensionFilterIterator; use Drupal\Core\Site\Settings; use Psr\Log\LogLevel; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Generator\UrlGenerator; Loading Loading @@ -85,7 +85,7 @@ function drush_bs_base_bs_theme_create($parent_machine_name, $child_machine_name return; } drush_log("Starting $child_machine_name theme creation", LogLevel::OK); drush_log("Starting $child_machine_name theme creation", LogLevel::INFO); // Parent theme should exist. $parent_path = _bs_base_drupal_get_theme_path($parent_machine_name); Loading Loading @@ -177,7 +177,7 @@ function drush_bs_base_bs_theme_create($parent_machine_name, $child_machine_name * Theme machine name. */ function drush_bs_base_bs_theme_update($target_machine_name) { drush_log("Updating a $target_machine_name theme", LogLevel::OK); drush_log("Updating a $target_machine_name theme", LogLevel::INFO); $target_path = _bs_base_drupal_get_theme_path($target_machine_name); if (empty($target_path)) { Loading Loading @@ -238,7 +238,7 @@ function drush_bs_base_bs_theme_update($target_machine_name) { * Theme machine name. */ function drush_bs_base_bs_theme_build($theme_machine_name) { drush_log("Building CSS asset for a $theme_machine_name theme", LogLevel::OK); drush_log("Building CSS asset for a $theme_machine_name theme", LogLevel::INFO); $target_path = _bs_base_drupal_get_theme_path($theme_machine_name); if (empty($target_path)) { Loading Loading @@ -819,7 +819,7 @@ function _bs_base_get_update_hooks($target_machine_name) { function _bs_base_theme_run_update_hooks($target_machine_name) { $update_functions = _bs_base_get_update_hooks($target_machine_name); if (empty($update_functions)) { drush_log(dt("No theme updates required."), LogLevel::SUCCESS); drush_log(dt("No theme updates required."), LogLevel::INFO); return; } Loading Loading @@ -869,7 +869,7 @@ function _bs_base_theme_run_update_hooks($target_machine_name) { */ function _bs_base_drush_build_css($path) { // Install npm packages and execute gulp sass compilation. drush_log("Installing any missing package and rebuilding sass files", LogLevel::OK); drush_log("Installing any missing package and rebuilding sass files", LogLevel::INFO); exec('cd ' . $path . ' && npm run build-css'); } Loading Loading
bs_base.drush.inc +6 −6 Original line number Diff line number Diff line Loading @@ -7,10 +7,10 @@ use Drupal\Core\DrupalKernel; use Drupal\Core\Extension\ExtensionDiscovery; use Drush\Log\LogLevel; use Drupal\Component\Serialization\Yaml; use Drupal\Core\Extension\Discovery\RecursiveExtensionFilterIterator; use Drupal\Core\Site\Settings; use Psr\Log\LogLevel; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Generator\UrlGenerator; Loading Loading @@ -85,7 +85,7 @@ function drush_bs_base_bs_theme_create($parent_machine_name, $child_machine_name return; } drush_log("Starting $child_machine_name theme creation", LogLevel::OK); drush_log("Starting $child_machine_name theme creation", LogLevel::INFO); // Parent theme should exist. $parent_path = _bs_base_drupal_get_theme_path($parent_machine_name); Loading Loading @@ -177,7 +177,7 @@ function drush_bs_base_bs_theme_create($parent_machine_name, $child_machine_name * Theme machine name. */ function drush_bs_base_bs_theme_update($target_machine_name) { drush_log("Updating a $target_machine_name theme", LogLevel::OK); drush_log("Updating a $target_machine_name theme", LogLevel::INFO); $target_path = _bs_base_drupal_get_theme_path($target_machine_name); if (empty($target_path)) { Loading Loading @@ -238,7 +238,7 @@ function drush_bs_base_bs_theme_update($target_machine_name) { * Theme machine name. */ function drush_bs_base_bs_theme_build($theme_machine_name) { drush_log("Building CSS asset for a $theme_machine_name theme", LogLevel::OK); drush_log("Building CSS asset for a $theme_machine_name theme", LogLevel::INFO); $target_path = _bs_base_drupal_get_theme_path($theme_machine_name); if (empty($target_path)) { Loading Loading @@ -819,7 +819,7 @@ function _bs_base_get_update_hooks($target_machine_name) { function _bs_base_theme_run_update_hooks($target_machine_name) { $update_functions = _bs_base_get_update_hooks($target_machine_name); if (empty($update_functions)) { drush_log(dt("No theme updates required."), LogLevel::SUCCESS); drush_log(dt("No theme updates required."), LogLevel::INFO); return; } Loading Loading @@ -869,7 +869,7 @@ function _bs_base_theme_run_update_hooks($target_machine_name) { */ function _bs_base_drush_build_css($path) { // Install npm packages and execute gulp sass compilation. drush_log("Installing any missing package and rebuilding sass files", LogLevel::OK); drush_log("Installing any missing package and rebuilding sass files", LogLevel::INFO); exec('cd ' . $path . ' && npm run build-css'); } Loading