Problem/Motivation
I maintain a bunch of modules including Sitemap, and have spent quite a bit of time recently trying to figure out how to optimize my (very limited) contribution time. To this end, I've found a bunch of tools and developed a bunch of best-practices to make it easier for me to jump into maintaining a module. (Admittedly, some of this productivity comes from consistency with other modules I maintain, so there is some level of self-interest in this issue.)
Also, I've found that defining a "recommended" way to set up a development environment makes it easier to write documentation, and also make writing "Steps to reproduce" in issues easier (i.e.: because they can start from a defined starting point.
Therefore, I would like to propose the following changes to the code in the 8.x-2.x branch:
- Update the GitLab CI config for consistency and to take advantage of the community's latest changes
- Update
ddev/ddev-drupal-contribfor consistency and to take advantage of the community's latest changes - Fix some eslint issues identified in my development environment
Proposed resolution
- Update
.gitlab-ci.yml. Note the latest version at time-of-writing is 1.15.0. - Update
ddev/ddev-drupal-contrib. Note the latest version at time-of-writing is ddev/ddev-drupal-contrib 1.1.5. - Run
ddev eslint --fixin the ddev-drupal-contrib environment to have it fix issues
Remaining tasks
Merge request- merge request !61 created by @mparker17 in #2Community review- skipped by @mparker17 in #5Commit- merged by @mparker17 in #6Release- released by @mparker17 in 8.x-2.6
User interface changes
None.
API changes
None.
Data model changes
None.
Issue fork sitemap-3587215
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mparker17I've created merge request !61.
All tests are passing, so this is ready for review from the community (and/or other maintainers).
Comment #4
mparker17Since ddev doesn't install add-ons automatically, I just pushed a commit to delete
.ddev/addon-metadata/ddev-drupal-contrib/manifest.yamlso it doesn't show up as "changed" every time someone sets up the development environment.On that note, I should post the steps to test (which I will turn into a documentation page similar to a docs page I wrote for Elasticsearch Connector)...
First-time setup:
Before this issue is merged, you have to run:
But once this issue is merged, this step becomes simpler:
ddev config --autoddev add-on get ddev/ddev-drupal-contribddev startecho '$settings["extension_discovery_scan_tests"] = TRUE;' | tee -a web/sites/default/settings.phpBefore working on an issue:
git switchto whatever branch/issue fork that I want to work onddev poser(this step is copied from the ddev-drupal-contrib Install instructions)ddev symlink-project(this step is copied from the ddev-drupal-contrib Install instructions)ddev drush -y si standardddev drush -y en sitemap_custom_plugin_test sitemap_vocabulary_api_testddev drush -y ulihttps://sitemap.ddev.site/sitemapAfter making changes in an issue...
ddev phpcs,ddev phpstanddev phpunitddev exec "cd web/core && yarn install"We could make this part of the "Before working on an issue" setup
ddev eslint,ddev stylelintComment #5
mparker17I haven't heard any feedback in about a month, so I'm going to merge this.
Comment #7
mparker17Merged! I will update this issue when this change has been released.
Comment #9
mparker17The changes in this issue have been released in sitemap-8.x-2.6.