Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I did a fresh install of a starter subtheme to test alpha2.
In addition to currently documented install commands, I also ran npm install --global gulp-cli
.
Running 'gulp watch' results in this:
#14 {main}
[17:00:54] Finished 'lint:sass' after 1.55 s
[17:00:54] 'drush:cc' errored after 1.64 s
[17:00:54] Error in plugin 'gulp-shell'
Message:
Command `drush cc css-js` failed with exit code 1
[17:00:55] starter_test.css 82.74 kB
[17:00:55] Finished 'sass' after 2.29 s
There is a larger error output, based on attempting to bootstrap the site. But I am not sure why this command should try to do that at all.
Comment | File | Size | Author |
---|---|---|---|
#6 | zurb_foundation-add-drush-alias-for-gulp-2854737-6.patch | 7.17 KB | mariagwyn |
Comments
Comment #2
HongPong CreditAttribution: HongPong as a volunteer and at kor group commentedIf you are using multi host prefixes it won't work. I had to put in something like this to get it to work in config.js in the child theme:
Not sure what the deal is. I wonder if the hyphen is wrong in css-js, it seemed to require that I retyped it?
Comment #3
mariagwyn CreditAttribution: mariagwyn as a volunteer commentedThis was just a standard install in a repo which is not bootstrapped to run drush at all, though I can with an alias. I am going to recommend that drush be set to 'false' in config.js so that people can turn it on if they actually want it on, which is what the gulpfile.js recommends:
I will have a patch once tested.
Comment #4
mariagwyn CreditAttribution: mariagwyn as a volunteer commentedPatch attached which does the following for the STARTER theme:
drush_alias
variable to config.js so alias can be added to each drush call. Variable also added to functions.Comment #5
mariagwyn CreditAttribution: mariagwyn as a volunteer commentedComment #6
mariagwyn CreditAttribution: mariagwyn as a volunteer commentedJust noting that patch applies cleanly via composer, and updates STARTER as expected. However, I missed committing some changes to the starter.scss file, these are now added on the new patch.
Comment #8
samuel.mortensonNice work @mariagwyn!