|
| 1 | +# Configure Dependabot scanning. |
| 2 | +version: 2 |
| 3 | + |
| 4 | +updates: |
| 5 | + # Check for updates to GitHub Actions. |
| 6 | + - package-ecosystem: "github-actions" |
| 7 | + directory: "/" |
| 8 | + schedule: |
| 9 | + interval: "daily" |
| 10 | + open-pull-requests-limit: 10 |
| 11 | + groups: |
| 12 | + github-actions: |
| 13 | + patterns: |
| 14 | + - "*" |
| 15 | + |
| 16 | + # Check for updates to Composer packages. |
| 17 | + - package-ecosystem: "composer" |
| 18 | + directory: "/" |
| 19 | + schedule: |
| 20 | + interval: "daily" |
| 21 | + open-pull-requests-limit: 10 |
| 22 | + ignore: |
| 23 | + # These dependencies do not currently need to be managed with Dependabot. |
| 24 | + - dependency-name: "squizlabs/php_codesniffer" |
| 25 | + - dependency-name: "wp-coding-standards/wpcs" |
| 26 | + - dependency-name: "phpcompatibility/php-compatibility" |
| 27 | + - dependency-name: "yoast/phpunit-polyfills" |
| 28 | + groups: |
| 29 | + composer-packages: |
| 30 | + patterns: |
| 31 | + - "composer/ca-bundle" |
| 32 | + |
| 33 | + # Monitor some npm dependencies for updates in groups. |
| 34 | + - package-ecosystem: "npm" |
| 35 | + directory: "/" |
| 36 | + schedule: |
| 37 | + interval: "daily" |
| 38 | + open-pull-requests-limit: 20 |
| 39 | + ignore: |
| 40 | + - dependency-name: "@wordpress/*" |
| 41 | + groups: |
| 42 | + ## |
| 43 | + # Groups for updating devDependencies. |
| 44 | + ## |
| 45 | + |
| 46 | + # Dependencies related to Playwright testing (E2E, performance). |
| 47 | + tests-playwright: |
| 48 | + patterns: |
| 49 | + - "*playwright*" |
| 50 | + # Dependencies related to JavaScript testing with QUnit. |
| 51 | + tests-qunit: |
| 52 | + patterns: |
| 53 | + - "*qunit*" |
| 54 | + - "sinon*" |
| 55 | + # Dependencies related to CSS and SASS building and manilupating. |
| 56 | + dev-css-sass: |
| 57 | + patterns: |
| 58 | + - "autoprefixer" |
| 59 | + # postcss and css related dependencies. |
| 60 | + - "*css*" |
| 61 | + - "*sass" |
| 62 | + # Dependencies related to the Webpack build process. |
| 63 | + dev-webpack: |
| 64 | + patterns: |
| 65 | + - "*webpack*" |
| 66 | + - "react-refresh" |
| 67 | + - "source-map-loader" |
| 68 | + # Dependencies related to the local Docker development environment. |
| 69 | + dev-docker: |
| 70 | + patterns: |
| 71 | + - "dotenv*" |
| 72 | + - "wait-on" |
| 73 | + # Dependencies that do not fall into a specific grouping. |
| 74 | + dev-miscellaneous: |
| 75 | + patterns: |
| 76 | + - "chalk" |
| 77 | + - "check-node-version" |
| 78 | + - "ink-docstrap" |
| 79 | + - "install-changed" |
| 80 | + - "matchdep" |
| 81 | + - "uuid" |
| 82 | + # Dependencies related to JavaScript minification. |
| 83 | + dev-uglify: |
| 84 | + patterns: |
| 85 | + - "*uglify*" |
| 86 | + # All GruntJS related dependencies that do not relate to another group. |
| 87 | + dev-grunt: |
| 88 | + patterns: |
| 89 | + - "*grunt*" |
| 90 | + |
| 91 | + ## |
| 92 | + # Groups for updating production dependencies. |
| 93 | + ## |
| 94 | + |
| 95 | + # Dependencies related to jQuery and its ecosystem. |
| 96 | + external-jquery: |
| 97 | + patterns: |
| 98 | + - "jquery*" |
| 99 | + # Dependencies related to React and its ecosystem. |
| 100 | + external-react: |
| 101 | + patterns: |
| 102 | + - "react*" |
| 103 | + - "!react-refresh" |
| 104 | + # Dependencies used for bundling polyfill libraries into WordPress. |
| 105 | + external-polyfills: |
| 106 | + patterns: |
| 107 | + - "core-js-url-browser" |
| 108 | + - "element-closest" |
| 109 | + - "formdata-polyfill" |
| 110 | + - "imagesloaded" |
| 111 | + - "objectFitPolyfill" |
| 112 | + - "polyfill-library" |
| 113 | + - "regenerator-runtime" |
| 114 | + - "whatwg-fetch" |
| 115 | + - "wicg-inert" |
| 116 | + # Dependencies related to the Masonry library. |
| 117 | + external-masonry: |
| 118 | + patterns: |
| 119 | + - "masonry-layout" |
| 120 | + # Dependencies that do not fall into a specific grouping. |
| 121 | + external-miscellaneous: |
| 122 | + patterns: |
| 123 | + - "backbone" |
| 124 | + - "clipboard" |
| 125 | + - "hoverintent" |
| 126 | + - "json2php" |
| 127 | + - "lodash" |
| 128 | + - "moment" |
| 129 | + - "underscore" |
| 130 | + |
| 131 | + # Monitor npm dependencies within default themes. |
| 132 | + - package-ecosystem: "npm" |
| 133 | + directory: "/src/wp-content/themes/twentytwentyfive" |
| 134 | + schedule: |
| 135 | + interval: "weekly" |
| 136 | + open-pull-requests-limit: 20 |
| 137 | + groups: |
| 138 | + twentytwentyfive-css: |
| 139 | + patterns: |
| 140 | + - "**browserslist*" |
| 141 | + - "*css*" |
| 142 | + |
| 143 | + - package-ecosystem: "npm" |
| 144 | + directory: "/src/wp-content/themes/twentytwentytwo" |
| 145 | + schedule: |
| 146 | + interval: "weekly" |
| 147 | + open-pull-requests-limit: 20 |
| 148 | + groups: |
| 149 | + twentytwentytwo-css: |
| 150 | + patterns: |
| 151 | + - "**browserslist*" |
| 152 | + - "*css*" |
| 153 | + |
| 154 | + - package-ecosystem: "npm" |
| 155 | + directory: "/src/wp-content/themes/twentytwentyone" |
| 156 | + schedule: |
| 157 | + interval: "weekly" |
| 158 | + open-pull-requests-limit: 20 |
| 159 | + groups: |
| 160 | + twentytwentyone-sass-css: |
| 161 | + patterns: |
| 162 | + - "**browserslist*" |
| 163 | + - "autoprefixer" |
| 164 | + - "*css*" |
| 165 | + - "*sass*" |
| 166 | + - "!*stylelint*" |
| 167 | + twentytwentyone-eslint: |
| 168 | + patterns: |
| 169 | + - "**eslint*" |
| 170 | + twentytwentyone-stylelint: |
| 171 | + patterns: |
| 172 | + - "**stylelint*" |
| 173 | + twentytwentyone-miscellaneous: |
| 174 | + patterns: |
| 175 | + - "chokidar-cli" |
| 176 | + - "minimist" |
| 177 | + - "npm-run-all" |
| 178 | + |
| 179 | + - package-ecosystem: "npm" |
| 180 | + directory: "/src/wp-content/themes/twentytwenty" |
| 181 | + schedule: |
| 182 | + interval: "weekly" |
| 183 | + open-pull-requests-limit: 20 |
| 184 | + groups: |
| 185 | + twentytwenty-css: |
| 186 | + patterns: |
| 187 | + - "**browserslist*" |
| 188 | + - "autoprefixer" |
| 189 | + - "*css*" |
| 190 | + twentytwenty-stylelint: |
| 191 | + patterns: |
| 192 | + - "*stylelint*" |
| 193 | + twentytwenty-miscellaneous: |
| 194 | + patterns: |
| 195 | + - "concurrently" |
| 196 | + - "@wordpress/scripts" |
| 197 | + |
| 198 | + - package-ecosystem: "npm" |
| 199 | + directory: "/src/wp-content/themes/twentynineteen" |
| 200 | + schedule: |
| 201 | + interval: "weekly" |
| 202 | + open-pull-requests-limit: 20 |
| 203 | + groups: |
| 204 | + twentynineteen-css-sass: |
| 205 | + patterns: |
| 206 | + - "**browserslist*" |
| 207 | + - "autoprefixer" |
| 208 | + - "*css*" |
| 209 | + - "*sass*" |
| 210 | + twentynineteen-miscellaneous: |
| 211 | + patterns: |
| 212 | + - "chokidar-cli" |
| 213 | + - "npm-run-all" |
0 commit comments