Explorar o código

Fix failed grunt not found on bin/setup-grunt execution #569

Mark Shust %!s(int64=2) %!d(string=hai) anos
pai
achega
24f3605d3c
Modificáronse 2 ficheiros con 4 adicións e 1 borrados
  1. 1 1
      compose/bin/grunt
  2. 3 0
      compose/bin/setup-grunt

+ 1 - 1
compose/bin/grunt

@@ -1,2 +1,2 @@
 #!/bin/bash
-bin/cli ./node_modules/grunt/bin/grunt "$@"
+bin/cli npx grunt "$@"

+ 3 - 0
compose/bin/setup-grunt

@@ -1,4 +1,7 @@
 #!/bin/bash
+echo "Confirming n98-magerun2 is installed..."
+bin/n98-magerun2 > /dev/null 2>&1
+
 DEFAULT_THEME_ID="select value from core_config_data where path = 'design/theme/theme_id'"
 THEME_PATH="select theme_path from theme where theme_id in ($DEFAULT_THEME_ID);"
 VENDOR_THEME=$(bin/n98-magerun2 db:query "$THEME_PATH" | sed -n 2p | cut -d$'\r' -f1)