Commit graph

85 commits

Author SHA1 Message Date
Ed Sanders 2be7b9f919 build: Update jsdoc-wmf-theme to 1.1.0
Additional changes:
* Update Minerva so that it doesn't output any APIs
to the documentation - this is intentional as Minerva does
not have any public facing APIs.

Bug: T368081
Change-Id: Ie1a3ea30cbf35663c7fdd2494c1698044882969e
2024-06-28 12:38:54 -07:00
libraryupgrader 4fe2a79c88 build: Updating dependencies
composer:
* php-parallel-lint/php-parallel-lint: 1.3.2 → 1.4.0

npm:
* eslint-config-wikimedia: 0.26.0 → 0.27.0

Change-Id: I429a3d7e3c2cfca35965b32df94c4eb180a11c0d
2024-04-23 14:32:08 +00:00
libraryupgrader b8d656274a build: Updating npm dependencies
* jsdoc: 3.6.10 → 4.0.2
* jsdoc-wmf-theme: ^0.0.8 → 0.0.12
* es5-ext: 0.10.62 → 0.10.64
  * https://github.com/advisories/GHSA-4gmj-3p3h-gm8h

Change-Id: Id20981bd5cc0cdd104de29c4a9c50af33ac541f1
2024-03-03 02:28:50 +00:00
Jon Robson cef90c6286 Allow us to write Jest tests!
Change-Id: I6095b08dd72a7ba0ac6bd13c5f5870a1e23c7748
2024-02-13 23:45:26 +00:00
libraryupgrader 5c2d903406 build: Updating wdio-mediawiki to 2.5.0
Change-Id: If978d6da9aefce13ebe018a129011629e2908576
2024-02-06 10:02:33 -05:00
Ed Sanders 8ef144f936 build: Update linters
Change-Id: I5aa3ab891890b52057a5fc855315e5b1b2203037
2024-01-24 22:02:12 +00:00
Volker E 40912af36d build: Update 'svgo' to latest v3.2.0
The latest update of 'svgo' dependency includes three optimizations on
converting path commands, which
- improves closing paths and how we determine if to use absolute or
  relative commands.
- round arc or convert to lines based on the geometric sagitta
- convert cubic Bézier curves to quadratic Bézier curves where possible
Also unifiying npm command to qua standard notation `minify:svg`.

Bug: T354875
Change-Id: Ibf59b3435b82602c5355b6f1c9b03920ea2e8eab
2024-01-12 17:45:54 +00:00
Ed Sanders a8aecda711 Udate jsdoc and use jsdoc-wmf-theme
Depends-On: Ic3861870c10f64d7f5414669a9d25b8ffb4c79a4
Change-Id: I6750e9bb6d5409e497b5605e3a4660734f5677ab
2023-10-20 13:42:19 +00:00
Jon Robson dc51175986 Remove wmf-a11y from daily job
It's throwing an error disrupting the build

Change-Id: Icc31316010f57813513ddd4449c74735ca7b63ae
2023-09-11 15:10:51 -05:00
Volker E e3f0eda1a3 build: Update SVGO to v3.0.2
svgo         2.8.0  →   3.0.2

Amending to new `cleanupIds` plugin name.

Bug: T339162
Change-Id: I6889eb9898c664a42c398ba810f5402f11b03fcf
2023-07-25 00:31:36 +00:00
Ed Sanders d09600aa51 build: Update linters
Change-Id: Iaa1c41ab1af4802fd71896b471eda8dd8852a323
2023-06-13 13:56:14 +01:00
Umherirrender b24107fbcf build: Updating eslint-config-wikimedia to 0.25.0
Change-Id: I3280de17d1dbd2da5980ea87cf29f420a99b457b
2023-05-16 00:02:49 +02:00
Vaughn Walters 677ce50b24 selenium: Refactor WebdriverIO tests from sync to async mode
WebdriverIO has dropped support of sync mode, hence changed to async.

Update npm packages: @wdio/*, wdio-mediawiki
because async mode needs at least @wdio v7.9.

Remove npm packages: @wdio/dot-reporter and @wdio/sync.

Bug: T293084
Change-Id: I5babbdadf21e9f951f69de93bfca5213a50965aa
2023-04-08 16:18:28 -05:00
Umherirrender acaf1f22d4 build: Updating npm dependencies
* eslint-config-wikimedia: 0.22.1 → 0.24.0

Bug: T333407
Change-Id: If778a8176b8a18cc9a5501f7147cc39fc0a48d45
2023-04-04 01:48:45 +02:00
Umherirrender 5bd834e0c7 build: Updating npm dependencies
* stylelint-config-wikimedia: 0.13.0 → 0.14.0

Run stylelint fix to fix the new stylelint rule

Change-Id: I7738ae421e84dd3171355391ebc82dd812b39ca4
2023-03-31 21:50:36 +02:00
Jon Robson 0dbe68f974 Remove storybook and update nvm version
The Minerva storybook only has 2 stories which look broken.
Given we never actively began using it, I suggest we remove it
from the repo.

Bug: T310004
Change-Id: I42ce4248f376c683ddbbf3f1ec0e275906f6ab45
2023-03-31 09:39:56 -07:00
libraryupgrader 7e68633b54 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 39.0.0 → 41.0.0
* mediawiki/mediawiki-phan-config: 0.11.1 → 0.12.0

npm:
* grunt-banana-checker: 0.9.0 → 0.10.0
* decode-uri-component: 0.2.0 → 0.2.2
  * https://github.com/advisories/GHSA-w573-4hg7-7wgq
* deep-object-diff: 1.1.7 → 1.1.9
  * https://github.com/advisories/GHSA-653v-rqx9-j85p
* http-cache-semantics: 4.1.0 → 4.1.1
  * https://github.com/advisories/GHSA-rc47-6667-2j5j
* json5: 2.2.1 → 2.2.3
  * https://github.com/advisories/GHSA-9c47-m6qq-7p4h
  * https://github.com/advisories/GHSA-9c47-m6qq-7p4h
* terser: 4.8.0 → 4.8.1
  * https://github.com/advisories/GHSA-4wf5-vphf-c2xc
* ua-parser-js: 1.0.2 → 1.0.34
  * https://github.com/advisories/GHSA-fhg7-m89q-25r3

Change-Id: I9775b27f6006e48d928d852bf5c843132ceea867
2023-03-12 16:30:13 +00:00
Vaughn Walters e5e48c3b1a selenium: Remove webdriverio npm package from the Minerva Neue skin
The `webdriverio` package does not need to be an explicit dependency.
It is a dependency of `@wdio/cli`.

Bug: T325059
Change-Id: Ida611141c76efc3f945d5e0f7b99fc603d5cdb2f
2023-01-13 17:46:22 -06:00
bwang a5f9dfd1d4 Add automated a11y test coverage to Minerva
Bug: T319080
Change-Id: I156fd765f02a3deb01722770de68ebbd4f076d5b
2022-09-30 20:26:05 +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 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
Ž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
jenkins-bot 1dfa1a9425 Merge "selenium: Run tests from desktop site" 2021-05-26 16:04:47 +00: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 20bb2bf09c selenium: Run tests from desktop site
Bug: T282058
Change-Id: I342a1ba510ea5da85da904c1bec4f26adfc60d33
2021-05-07 17:44:33 +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
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 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
Volker E 9d1db05e7b Fix storybook dev-script imports
* Correctly pull down mediawiki.skin.variables.less
* Update source of clock icon in last modified bar
* Update query selectors
* Push to docs.wikimedia.org so things do not break so easily
again

Bug: T263270
Change-Id: I93cb7e53fb78d3a03019583b3b0c69a057088044
2020-09-25 11:47:09 -07:00
Ed Sanders 1cea342431 build: Update eslint-config-wikimedia to 0.17.0
Change-Id: I0b917095bc84ff8b3a745f2d8b1e8541b9817bc8
2020-09-16 13:48:53 +00:00
jdlrobson 7408d87465 Run bundlesize tests on every commit
It was added in 7340485014
but for some reason never enabled.

This was supposed to be protecting us from performance regressions
by monitoring the size of modules in the repo. It appears to be
broken both locally and on Jenkins when run on the due to some changes
in Phabricator.

Since then we've added bundle size tests to Vector using a different
more foolproof method. I think that method is more preferable as it
also provides coverage for JS and icons so the
associated script is copied over and used in Minerva
and activated on all commits.

Bug: T259080
Change-Id: I9ba2dcc060ec09d91814c947d5be3f71b055a66e
2020-07-28 23:43:38 +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
Edward Tadros 49c8c0f0e1 Selenium: Update WebdriverIO to version 6
Bug: T255447
Change-Id: I51daa462187983462d7f6529e5f76f47b21e5ef2
2020-07-13 07:38:36 -07:00
Edward Tadros c8ce9608c0 Selenium: Update WebdriverIO to version 5
Bug: T255447
Change-Id: I4cdde3070a6dc4e742ea37a78a17dfd556103dd6
2020-06-30 08:27:05 -07: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