Commit graph

57 commits

Author SHA1 Message Date
bwang 29631e85c5 Bump nvmrc to 14.17.5 to match Wikimedia CI infrastructure.
Change-Id: If6e267fde3af3efc4ca24230dcd2ad8ebc6c290b
2022-10-18 16:49:00 +00:00
bwang a5f9dfd1d4 Add automated a11y test coverage to Minerva
Bug: T319080
Change-Id: I156fd765f02a3deb01722770de68ebbd4f076d5b
2022-09-30 20:26:05 +00:00
libraryupgrader 3d447ad95c build: Updating got to 11.8.5
* https://github.com/advisories/GHSA-pfrx-2q88-qq97

Change-Id: I80e2c7dcad28f46263899897dab6fb284855b670
2022-06-22 12:23:23 +00:00
libraryupgrader 62ab69e415 build: Updating composer dependencies
* mediawiki/mediawiki-codesniffer: 38.0.0 → 39.0.0
  The following sniffs are failing and were disabled:
  * MediaWiki.PHPUnit.AssertEmpty.AssertEmptyUsed

* php-parallel-lint/php-console-highlighter: 0.5.0 → 1.0.0
* php-parallel-lint/php-parallel-lint: 1.3.1 → 1.3.2

Change-Id: I5b7d3ddbdc9b09c824293e4294ad3a8d318e0ae6
2022-05-21 19:11:15 +00:00
Ed Sanders 86caa17713 build: Update linters and linter config
* Update stylelint-config-wikimedia to 0.13.0
* Ensure eslintrc.js and root files are linted
  with server config

Change-Id: I59c49fedd5b0c4c5620f960b78e4f781a6bc5abb
2022-05-18 14:33:23 +01:00
libraryupgrader b2f4d53e19 build: Updating npm dependencies
* webdriverio: 7.16.4 → 7.19.5
* async: 3.2.2 → 3.2.3
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
* jake: 10.8.4 → 10.8.5
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25

Change-Id: I3ef858f2fb399e1f72c1604f43acac580560912b
2022-04-27 17:55:38 +00:00
libraryupgrader a86fd8e1d2 build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.11.0 → 0.11.1

npm:
* eslint-config-wikimedia: 0.21.0 → 0.22.1
* wdio-mediawiki: 1.1.1 → 1.2.0
* @wdio/cli: 7.16.4 → 7.19.5
* @wdio/local-runner: 7.16.4 → 7.19.5
* @wdio/sync: 7.16.4 → 7.19.5
* jsdoc: 3.6.7 → 3.6.10
* ansi-regex: 5.0.1 → 5.0.1
  * https://github.com/advisories/GHSA-93q8-gq69-wqmw
  * https://github.com/advisories/GHSA-93q8-gq69-wqmw
* async: 3.2.2 → 3.2.2
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
* ejs: 2.7.4 → 2.7.4
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
* jake: 10.8.2 → 10.8.4
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
* json-schema: 0.2.3 → 0.4.0
  * https://github.com/advisories/GHSA-896r-f27r-55mw
* jsprim: 1.4.1 → 1.4.2
  * https://github.com/advisories/GHSA-896r-f27r-55mw
* minimist: 1.2.5 → 1.2.6
  * https://github.com/advisories/GHSA-xvch-5gv4-984h
* mocha: 9.1.3 → 9.2.2
  * https://github.com/advisories/GHSA-qrpm-p2h7-hrv2
* nanoid: 3.1.25 → 3.3.1
  * https://github.com/advisories/GHSA-qrpm-p2h7-hrv2
* shelljs: 0.8.4 → 0.8.5
  * https://github.com/advisories/GHSA-64g7-mvw6-v9qj
* url-parse: 1.5.3 → 1.5.10
  * https://github.com/advisories/GHSA-jf5r-8hm2-f872
  * https://github.com/advisories/GHSA-hgjh-723h-mx2j
  * https://github.com/advisories/GHSA-8v38-pw62-9cw2
  * https://github.com/advisories/GHSA-rqff-837h-mm52

Additional changes:
* Set `name` in package.json.
* .gitignore: Added .phpunit.result.cache (T242727).

Change-Id: Ic4993fac43fb42af08654aab03352281d663cce9
2022-04-16 08:43:11 +00:00
Volker E e3c2e625f4 build: Update 'svgo' to latest v2.8.0 & re-crush images
Updating 'svgo' to v2.8.0 and newest Wikimedia SVG guidelines –
mainly around new whitespace features of SVGO.

Change-Id: Ief64a9ad3d2eec96a2bdba14d06a0dce1a29e014
2022-02-28 00:00:36 +00:00
Kosta Harlan d8c505c73a Move bundlesize test to MediaWikiIntegration test
Depends-On: Ieb7591f3c0ac843677a2a61b4ad47f920fc2ca2d
Bug: T255149
Change-Id: I311793952e995715010dc70069e1056165a1cd90
2021-12-10 08:43:51 +01:00
Ed Sanders 2ec4b950e2 build: Update eslint-config-wikimedia to 0.21.0
Change-Id: I0185de7ec62c54ee733de94622e0c41a65e86731
2021-11-09 14:48:40 +00:00
Ed Sanders ef742a0d6a build: Update wdio devDependencies
Change-Id: I2d51563517f88ffa50ddf76d1716d13024f21381
2021-11-09 14:41:17 +00:00
libraryupgrader 3a6ce58ca1 build: Updating stylelint-config-wikimedia to 0.11.1
The following rules are failing and were disabled:
* declaration-property-unit-disallowed-list

Change-Id: I02729c324288f5ff0cb5221aa86732676d702803
2021-09-05 00:55:47 +00:00
libraryupgrader 39612ba663 build: Updating npm dependencies
* path-parse: 1.0.6 → 1.0.7
  * https://npmjs.com/advisories/1773 (CVE-2021-23343)
* url-parse: 1.5.1 → 1.5.3
  * https://npmjs.com/advisories/1776 (CVE-2021-3664)

Change-Id: I6e5b7ff163701c0b2599e6ca42ffb03101d25d60
2021-08-25 14:31:06 +00:00
libraryupgrader 218151025e build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 36.0.0 → 37.0.0

npm:
* svgo: 2.3.0 → 2.3.1
  * https://npmjs.com/advisories/1754 (CVE-2021-33587)
* postcss: 7.0.35 → 7.0.36
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)
* ws: 7.4.5 → 7.5.3
  * https://npmjs.com/advisories/1748 (CVE-2021-32640)
* trim-newlines: 3.0.0 → 3.0.1
  * https://npmjs.com/advisories/1753 (CVE-2021-33623)
* normalize-url: 4.5.0 → 4.5.1
  * https://npmjs.com/advisories/1755 (CVE-2021-33502)
* prismjs: 1.23.0 → 1.24.1
  * https://npmjs.com/advisories/1762 (CVE-2021-32723)

Change-Id: Idfecb28ef49b193ba78b3f7b1335d4d5cb2862cd
2021-07-23 18:37:41 +00:00
jenkins-bot 18329d800a Merge "selenium: Update wdio-mediawiki" 2021-06-09 02:57:25 +00:00
libraryupgrader 2f8eb488ef build: Updating browserslist to 4.16.6
* https://npmjs.com/advisories/1747 (CVE-2021-23364)

Change-Id: I89c9423666a34fa34f2bce7503f5a88cabd32b1b
2021-05-28 05:48:32 +00:00
Željko Filipin ed40ca23c9 selenium: Update wdio-mediawiki
wdio-mediawiki v1.1.1:
- Includes wdio-defaults.conf.js file that vastly simplifies wdio.conf.js.
- Replaces @wdio/spec-reporter with @wdio/dot-reporter.
- Introduces video recording.

Bug: T283597
Change-Id: I5408b35060734709a6d21520c6abd738fb44d5a1
2021-05-27 17:49:19 +02:00
libraryupgrader 27ad791d51 build: Updating jsdoc to 3.6.7
* https://npmjs.com/advisories/1674 (CVE-2021-23358)

Change-Id: I1afd6b85ded3e18e9dea9b7d935df6c7ea6a8fe7
2021-05-15 09:24:49 +00:00
Željko Filipin 8ac75d254a selenium: Add JUnit reporter
JUnit reporter is required to create the XML file that Jenkins uses to
create Test Result Trend chart for selenium-daily-beta-MinervaNeue
job.

Bug: T214686
Change-Id: Ibf4b08f2f4b60ad02a3a3b5a5ba8e0d899a86859
2021-04-29 18:06:15 +02:00
Željko Filipin 96aed4564e selenium: Update WebdriverIO to v7
Update all @wdio packages and webdriverio to v7.
Update mwbot to v2.
Do not update @wdio/cucumber-framework because of
`error  "cucumber" is not found  node/no-missing-require`
ESLint failure.

Bug: T280975
Change-Id: I83b9963ba2647af01dd1ed1f8be0178e584a2024
2021-04-23 14:13:43 +00:00
Volker E 28394a1367 build: Upgrade 'svgo' to latest and re-crush SVGs
Upgrading to SVGO v2.3.0 and changing over to new JS config.
Also amending svg check shell script and re-crushing
all SVGs.

Bug: T278656
Change-Id: Ic52d7eb595073e5bde166e5cf5767772c5eb60ce
2021-04-20 17:45:18 +00:00
libraryupgrader f1f904e293 build: Updating eslint-config-wikimedia to 0.20.0
Change-Id: Ie3be1848c18f12888bdeabaea234b7c558ace899
2021-04-15 09:54:54 +00:00
bwang f9c6666717 build: Replace Grunt with npm scripts for eslint, stylelint, and banana-checker
Fix eslint errors in .eslintrc, and add .eslintrc to the .eslintignore.

Bug: T206462
Change-Id: I1569082622a61d3b089c7d2a637dafabae68228e
2021-04-13 21:09:32 +00:00
Umherirrender 0e3d6a1954 build: Update caniuse-lite
Latest version:     1.0.30001207
Installed versions: 1.0.30001125, 1.0.30001159

Due to two different version the automatic update does not work

Change-Id: I296fc5fece71996b7856547f0c8d02b31be54457
2021-04-06 15:07:09 +02:00
libraryupgrader 846a37613b build: Updating dependencies
composer:
* mediawiki/minus-x: 1.1.0 → 1.1.1

npm:
* prismjs: 1.21.0 → 1.23.0
  * https://npmjs.com/advisories/1638 (CVE-2021-23341)
* elliptic: 6.5.3 → 6.5.4
  * https://npmjs.com/advisories/1648 (CVE-2020-28498)

Additional changes:
* Dropped .php5 and .inc files from .phpcs.xml (T200956).

Change-Id: I4be864417fbb0259e5db85b6741da0c7918df494
2021-03-12 08:17:22 +00:00
libraryupgrader 974bdb5ec4 build: Updating npm dependencies
* bundlesize: 0.18.0 → 0.18.1
  * https://npmjs.com/advisories/1594 (CVE-2020-28168)
* github-build: 1.2.1 → 1.2.2
  * https://npmjs.com/advisories/1594 (CVE-2020-28168)

Additional changes:
* Added the "composer phan" command to conveniently run phan.

Change-Id: I31709fad756dfea5d47755f170a5b75952c793d2
2021-01-09 05:07:14 +00:00
libraryupgrader db9fa8208f build: Updating ini to 1.3.8
* https://npmjs.com/advisories/1589

Change-Id: Icfcccb22d28d89cf46b1537c58886232daaf7411
2020-12-12 07:52:59 +00:00
libraryupgrader 541a65aeff build: Updating npm dependencies
* grunt-stylelint: 0.15.0 → 0.16.0
* stylelint-config-wikimedia: 0.10.1 → 0.10.3

Change-Id: I504a59835c8e5ac7d4f246dfaa68a209dca80743
2020-11-22 16:48:12 +00:00
Ed Sanders 1cea342431 build: Update eslint-config-wikimedia to 0.17.0
Change-Id: I0b917095bc84ff8b3a745f2d8b1e8541b9817bc8
2020-09-16 13:48:53 +00:00
libraryupgrader 6b397da601 build: Updating npm dependencies
* webpack: 4.43.0 → 4.44.1
  * https://npmjs.com/advisories/1548
* terser-webpack-plugin: 1.4.3 → 1.4.4
  * https://npmjs.com/advisories/1548
* mocha: 8.0.1 → 8.1.1
  * https://npmjs.com/advisories/1548

Change-Id: If82fa2aae8f0353f85dc520fb0ed8692a0bd7820
2020-08-11 23:32:31 +00:00
libraryupgrader de68896908 build: Updating elliptic to 6.5.3
* https://npmjs.com/advisories/1547
* CVE-2020-13822

Change-Id: Ie755f6d0c3ba1f131822d2f2dbad971e8e74fe15
2020-07-29 23:13:33 +00:00
libraryupgrader bfd7129ced build: Updating grunt to 1.2.1
Change-Id: Ic7c65bd8f950dfbe9651294fd83a25e2b9b89f25
2020-07-21 22:23:47 +00:00
libraryupgrader 101730e31d build: Updating eslint-config-wikimedia to 0.16.2
Change-Id: I4d39554093ea299f5e86c26ebec89ff0b135bf81
2020-07-16 04:24:20 +00:00
jenkins-bot 18c0eb4964 Merge "Selenium: Update WebdriverIO to version 6" 2020-07-14 13:55:34 +00:00
Edward Tadros 49c8c0f0e1 Selenium: Update WebdriverIO to version 6
Bug: T255447
Change-Id: I51daa462187983462d7f6529e5f76f47b21e5ef2
2020-07-13 07:38:36 -07:00
libraryupgrader 22bf7fadfc build: Updating lodash to 4.17.19
* https://npmjs.com/advisories/1523
* CVE-2019-10744

Change-Id: Ib5c1127c579cf2703ce1774fd742a45a3798540a
2020-07-11 15:06:48 +00:00
Edward Tadros c8ce9608c0 Selenium: Update WebdriverIO to version 5
Bug: T255447
Change-Id: I4cdde3070a6dc4e742ea37a78a17dfd556103dd6
2020-06-30 08:27:05 -07:00
libraryupgrader b8cfba1bab build: Updating markdown-to-jsx to 6.11.4
* https://npmjs.com/advisories/1219

Additional changes:
* Also sorted "composer fix" command to run phpcbf last.
* Removing manual reportUnusedDisableDirectives for eslint.

Change-Id: I2ee33d128567067e48c1dbe5f78c254a4cba82e4
2020-06-12 11:31:40 +00:00
Ed Sanders a32999e641 build: Update eslint-config-wikimedia to 0.16.0
Change-Id: Icabf6e065ed5685207731262db72faf848a0a04d
2020-06-04 08:39:32 -07:00
James D. Forrester 2ebe800f72 build: Upgrade jsdoc from 3.5.5 to 3.6.4
Principally, this is to fix the npm audit warning. No change in output that I see.

Change-Id: I6c39a6551ffd4a42fb6b26337a8bb7aa803feeb1
2020-04-27 22:22:16 +00:00
James D. Forrester 1e1436e655 build: Upgrade eslint-config-wikimedia from 0.15.1 to 0.15.3 and make pass
Change-Id: I67aff112f448b9159d286812a3b0ab27e68af5b4
2020-04-27 22:21:58 +00:00
James D. Forrester e4d9f82143 build: Upgrade stylelint-config-wikimedia from 0.10.0 to 0.10.1
Also upgrade grunt-stylelint dependency from 0.11.1 to 0.15.0

Change-Id: I7348d35997b8bb0b2792e8b97a895774b7dcdc78
2020-04-27 09:49:56 -07:00
Ed Sanders 2a52e7f15c build: Update linters
Change-Id: Iaf0c760d5a69bc41505b782ab9f05864c37c7196
2020-04-13 16:05:10 +01:00
Volker E d92fffb4a1 build: Update svgo to latest v1.3.2
* svgo: 0.7.2 → 1.3.2

Bug: T246544
Change-Id: I1a1ea9c1c90a4676384ae8aae8a846d09ca13637
2020-03-05 16:25:02 -08:00
jdlrobson 1200cb5279 Storybook added to MinervaNeue
For now just adding story entries for footer element and last modified.

Bug: T244106
Change-Id: Ib36f22f9b9d805f87fc074d12473497cfaf91b79
2020-03-03 15:22:34 +00:00
jdlrobson 7340485014 Monitor render blocking css bundle sizes
Add a script that builds CSS for Minerva using lessc than measures
their bundlesize.

This will give us added protection to large increases in bundlesize
that can lead to performance regressions.

Change-Id: I2e5e55ad10fac7ecb5a8c19ccdf3cc54de59b75d
2020-01-29 11:03:59 +00:00
Ed Sanders 49dd1fd71a build: Update eslint-config-wikimedia
Change-Id: Ic2148121161b804c3f6f41b9446fcea066f3de0d
2019-10-31 23:08:57 +00:00
Ed Sanders d54798ec6b build: Update eslint-config-wikimedia
Change-Id: Id14552b5663340ffc1e2ae02599a1df99685e464
2019-10-04 15:28:49 +00:00
jdlrobson 3ad1dfbcf5 Upgrade wdio-mediawiki and webdriverio dependencies
Change-Id: Id7c78dd22ffeccf7c4636169b08bd7781ec071f9
2019-09-19 10:08:56 -07:00
Ed Sanders 8e579c373b build: Update linters
Change-Id: Ie0983466ad0eed0a30d62f28b10efebd0f2eacba
2019-09-17 14:21:30 +01:00