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.
Instead of manually having users update their Radix subthemes to version >3.0, there should be a script that handles it.
Comment | File | Size | Author |
---|---|---|---|
#9 | interdiff.txt | 983 bytes | Albert Volkman |
#9 | upgrade_radix_3.1-2653686-9.patch | 4.66 KB | Albert Volkman |
Comments
Comment #2
Albert Volkman CreditAttribution: Albert Volkman commentedThis patch adds the drush command
radix-upgrade-31
that automates the steps outlined here-http://www.radixtheme.org/articles/update-rc4-to-3/
Comment #3
Albert Volkman CreditAttribution: Albert Volkman commentedComment #4
shadcn CreditAttribution: shadcn commentedWow. This is really helpful. Testing.
Comment #5
jday CreditAttribution: jday commentedThe script worked with one exception, the 'stylesheets' directory was not renamed to 'css', but everything else was reconfigured as expected.
Comment #6
Albert Volkman CreditAttribution: Albert Volkman commentedThe instruction set from radixtheme doesn't explicitly say to rename that directory, but I am changing where it's pointing to in the info file... @arshadcn, thoughts?
Comment #7
shadcn CreditAttribution: shadcn commentedI might've missed this in the documentation. But we renamed stylesheets to css.
Other than this the command is working perfectly. Thanks for this Albert.
Comment #8
jday CreditAttribution: jday commentedTo avoid issues when the theme name does not conform to the json NAME requirements (all lowercase, one word, no spaces, dashes and underscores allowed) the script should use the machine name for the {{name}} replacement
https://docs.npmjs.com/getting-started/using-a-package.json
Comment #9
Albert Volkman CreditAttribution: Albert Volkman commentedThis updated patch addresses the CSS folder move and @jday's point. Great catch @jday!
Comment #10
Albert Volkman CreditAttribution: Albert Volkman commentedAlso, @arshadcn feel free to alter the drush command name... it was just the best thing I could think of.
Comment #12
shadcn CreditAttribution: shadcn commentedRenamed the command to
drush radix-upgrade-32
and committed. Thanks.Comment #13
shadcn CreditAttribution: shadcn commentedComment #14
shadcn CreditAttribution: shadcn commentedComment #15
Albert Volkman CreditAttribution: Albert Volkman commentedComment #16
Albert Volkman CreditAttribution: Albert Volkman commented@arshadcn instead of renaming the update function each time, perhaps we should change it to just radix-upgrade-gulp or something similar?
Comment #17
shadcn CreditAttribution: shadcn commentedAgreed. I'll make the changes.
Comment #19
shadcn CreditAttribution: shadcn commentedDone. Updated the Drush command and the documentation.