Skip to content

Commit 327d76b

Browse files
committed
Build/Test Tools: Use Dependabot to manage npm dependencies.
This expands the use of Dependabot to also manage npm dependencies by configuring several groups of related packages. After [59983], pull requests for the majority of these updates can now be staged without encountering test failures. Props joemcgill, peterwilsoncc, swissspidy, johnbillion. See #62221. git-svn-id: https://develop.svn.wordpress.org/trunk@60066 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 48a709e commit 327d76b

File tree

1 file changed

+98
-0
lines changed

1 file changed

+98
-0
lines changed

.github/dependabot.yml

+98
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,101 @@ updates:
2929
composer-packages:
3030
patterns:
3131
- "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"

0 commit comments

Comments
 (0)