Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
85
web/modules/contrib/webform/docs/UPDATE-LIBRARIES.md
Normal file
85
web/modules/contrib/webform/docs/UPDATE-LIBRARIES.md
Normal file
|
@ -0,0 +1,85 @@
|
|||
Steps for updating libraries
|
||||
----------------------------
|
||||
|
||||
1. Create a ticket in the Webform issue queue
|
||||
2. Create a list of all recent releases
|
||||
3. Update WebformLibrariesManager
|
||||
4. Update webform.libraries.yml
|
||||
5. Test changes
|
||||
6. Update webform_libraries.module
|
||||
7. Update composer.libraries.json
|
||||
|
||||
|
||||
1. Create a ticket in the Webform issue queue
|
||||
----------------------------------------------
|
||||
|
||||
- https://www.drupal.org/node/add/project-issue/webform
|
||||
|
||||
|
||||
2. Create a list of all recent releases
|
||||
---------------------------------------
|
||||
|
||||
- Enable all external libraries (admin/structure/webform/config/libraries)
|
||||
|
||||
- Manually check for new releases. Only update to stable releases.
|
||||
|
||||
- Add list of updated external libraries to issue on Drupal.org
|
||||
|
||||
|
||||
3. Update WebformLibrariesManager
|
||||
---------------------------------
|
||||
|
||||
- \Drupal\webform\WebformLibrariesManager::initLibraries
|
||||
|
||||
|
||||
4. Update webform.libraries.yml
|
||||
---------------------------------
|
||||
|
||||
- webform.libraries.yml
|
||||
|
||||
|
||||
5. Test changes
|
||||
---------------
|
||||
|
||||
Check external libraries are loaded from CDN.
|
||||
|
||||
drush webform:libraries:remove
|
||||
|
||||
Check external libraries are download.
|
||||
|
||||
drush webform:libraries:download
|
||||
|
||||
|
||||
6. Update webform_libraries.module
|
||||
----------------------------------
|
||||
|
||||
Enable and download all libraries
|
||||
|
||||
cd /var/www/sites/d8_webform
|
||||
drush php-eval "\Drupal::configFactory()->getEditable('webform.settings')->set('libraries.excluded_libraries', [])->save();"
|
||||
drush en -y webform_image_select
|
||||
drush webform:libraries:download
|
||||
|
||||
Update libraries.zip
|
||||
|
||||
# Remove libraries.zip.
|
||||
rm -Rf /var/www/sites/d8_webform/web/modules/sandbox/webform_libraries/libraries.zip
|
||||
|
||||
# Create libraries.zip
|
||||
cd /var/www/sites/d8_webform/web/
|
||||
zip -r libraries.zip libraries
|
||||
mv libraries.zip /private/var/www/sites/d8_webform/web/modules/sandbox/webform_libraries/libraries.zip
|
||||
|
||||
Commit changes
|
||||
|
||||
# Commit changes.
|
||||
cd /private/var/www/sites/d8_webform/web/modules/sandbox/webform_libraries/
|
||||
git commit -am"Update webform_libraries"
|
||||
git push
|
||||
|
||||
|
||||
7. Update composer.libraries.json
|
||||
----------------------------------
|
||||
|
||||
cd /private/var/www/sites/d8_webform/web/modules/sandbox/webform
|
||||
drush webform:libraries:composer > composer.libraries.json
|
Reference in a new issue