Commit graph

147 commits

Author SHA1 Message Date
Ed Sanders 51e4edb017 Update jsdoc-wmf-theme to 1.1.0
Bug: T368081
Change-Id: I3d9e2f8edcf2adcfe06b83a911b690b665f2b349
2024-06-26 12:07:04 +01:00
Novem Linguae 2766e13e4f alphabetize package.json scripts
Change-Id: Ic02adef05e93efa78a530fc174fe741a1ba6db49
2024-06-22 07:57:08 -07:00
Novem Linguae 8bb84f070d rename .jsdoc.json to jsdoc.json
Bug: T368082
Change-Id: I81d1328b17205e7a5fbd2df91ddf3c9c3284897a
2024-06-22 14:55:29 +00:00
libraryupgrader 9e9ee59272 build: Updating npm dependencies
* eslint-config-wikimedia: 0.28.0 → 0.28.2
  The following rules are failing and were disabled:
  * modules:
    * no-jquery/no-append-html
  * modules/ve-mw/dm:
    * no-jquery/no-append-html

* grunt-stylelint: 0.20.0 → 0.20.1
* stylelint-config-wikimedia: 0.17.1 → 0.17.2
* braces: 3.0.2 → 3.0.3
  * https://github.com/advisories/GHSA-grv7-fg5c-xmjg

Change-Id: If171a41f93d4e96606df99fb394a9f961dc36ebd
2024-06-16 15:25:54 +00:00
Ed Sanders 291844dbee build: Update stylelint-config-wikimedia to 0.17.1
Change-Id: I8e0f087ae3d2644df85a85791b9c49c09567c0f4
2024-06-05 18:47:49 +01:00
libraryupgrader 702677220d build: Updating eslint-config-wikimedia to 0.28.0
The following rules are failing and were disabled:
* modules/ve-mw/tests:
  * implicit-arrow-linebreak

Change-Id: If857233c0de24c8cf619dbb1347ebb375f3ab1ba
2024-06-04 03:40:00 +00:00
James D. Forrester 7789b55666 build: Upgrade stylelint-config-wikimedia and grunt-stylelint for stylelint 16
Change-Id: I19ee70def0180bb8504d47b4a65e1e817d9cffcd
2024-06-03 13:07:16 -04:00
libraryupgrader fd1344b319 build: Updating grunt-banana-checker to 0.13.0
Change-Id: Ie76534426f8a03dc2bcf8d602ccb5131589e88bc
2024-05-17 03:15:17 +00:00
Ed Sanders 2eafc3ddc2 checkModules.js: Run as part of CI
* Add to npm run test, and exit with error code
* Improve output message, with instructions on
  how to add to ignore list.

Change-Id: Id4ed56673e84073ac06468bdc429c138466e2501
2024-05-09 11:07:37 +01:00
libraryupgrader 70c2179025 build: Updating npm dependencies
* grunt-banana-checker: 0.11.1 → 0.12.0
* jsdoc-wmf-theme: 1.0.0 → 1.0.1

Change-Id: I18e09b6afbefa39fd79d1315dd435d763be63812
2024-05-07 13:08:22 +00:00
Ed Sanders 8093aa43c1 JSDoc: Update jsdoc-wmf-theme to 1.0.0
Change-Id: Ibca8da2015bdbcc08817c9852c5cda7c72e07b38
2024-04-30 12:32:58 +01:00
James D. Forrester b518e55ef9 docs: Replace JSDuck with JSDoc (and pull-through VE with said change)
This is not great, but it's a start (and unblocks other pull-throughs).

New changes:
c401efc98 build: Replace jsduck with jsdoc for documentation
16ba162a0 JSDoc: @mixins -> @mixes
9e0a1f53b JSDoc: Fix complex return types
449b6cc0f Prefer arrow function callbacks
1539af2c8 Remove 'this' bindings in arrow functions
b760f3b14 Use arrow functions in OO.ui.Process steps
57c24109e Use arrow functions in jQuery callbacks
9622ccef9 Convert some remaining functions callbacks to arrow functions
f6c885021 Remove useless local variable
1cd800020 Clear branch node cache when rebuilding tree

Bug: T250843
Bug: T363329
Change-Id: I0f4878ca84b95e3f388b358b943f105637e455f9
2024-04-29 16:16:50 +01:00
libraryupgrader c51ec255d7 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: Icb8391aaa2eb5826cc13bcb2b2a06f53d56bc41c
2024-03-30 16:51:06 +00:00
libraryupgrader 824549a0ee build: Updating npm dependencies
* wdio-mediawiki: 2.1.0 → 2.5.0
* get-func-name: 2.0.0 → 2.0.2
  * https://github.com/advisories/GHSA-4q6p-r6v2-jvc5
* postcss: 8.4.26 → 8.4.33
  * https://github.com/advisories/GHSA-7fh5-64p2-3v2j

Change-Id: I7e247eb0a07ba724d7fe99477bd44da4cf186b92
2024-02-06 10:04:54 -05:00
Ed Sanders 3966573f02 build: Update ESLint to 0.26.0 and autofix
Change-Id: Ia5e15684c1c3dcd69985445a09fc4e4910368b5b
2023-11-28 11:18:09 +00:00
James D. Forrester c7ee116f07 build: Upgrade grunt-banana-checker from 0.11.0 to 0.11.1
Change-Id: I9390d6f36ef029b0a29126421b4647948bac7147
2023-09-26 14:39:59 -04:00
Ed Sanders 2b4dab6703 build: Update stylelint-config-wikimedia
Change-Id: I4e56a07c0cd478fb2ea1908c79f584ea3e4d788e
2023-08-21 16:06:40 +01:00
James D. Forrester 74a72af572 build: Upgrade grunt-eslint from 24.1.0 to 24.3.0
Change-Id: I5eff88095acf4cda1678a76379de04d4877e63b8
2023-07-14 13:27:54 -04:00
James D. Forrester 325ca8a40a build: Upgrade stylelint-config-wikimedia from 0.15.0 to 0.16.0
Change-Id: I993074948832a50997255bd413192c8fdeaf9edb
2023-07-14 13:02:49 -04:00
libraryupgrader c8c1539efa build: Updating grunt-banana-checker to 0.11.0
Change-Id: I5c8d55432660824559aeb98ef3305d64baeb8508
2023-05-26 10:14:39 +00:00
Ed Sanders 7d39310830 build: Update stylelint-config-wikimedia to 0.15.0
Change-Id: I87b7975b91a25f994ef9fc55759549e4c27e3e8b
2023-05-24 18:50:35 +01:00
Ed Sanders 0b8884a5b7 build: Update eslint-config-wikimedia to 0.25.1
Change-Id: I1aa9e6d79936932f1af9e90a988a877510ce0565
2023-05-24 18:49:03 +01:00
James D. Forrester 02d2689467 build: Upgrade grunt-tyops to 0.1.1
Change-Id: I5636218b0d7f45b9ea9c49b7651cc286e5e3e66e
2023-05-20 12:33:49 +03:00
James D. Forrester 88fae93818 build: Upgrade api-testing from 1.5.0 to 1.6.0
Bug: T333134
Change-Id: Id660c24848a3c5cfbac71f5d7f0635c7bd90b913
2023-05-01 08:14:10 -04:00
libraryupgrader 5a140d3af1 build: Updating eslint-config-wikimedia to 0.25.0
Change-Id: Ia7239b5750e51415c14145517c2a8d3c559fd895
2023-04-29 14:17:04 +00:00
libraryupgrader 9c99485fca build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.0 → 0.12.1

npm:
* grunt-eslint: 24.0.0 → 24.0.1

Change-Id: Ieeb1d06761805ff2f3e29c4d0977f515e0629d41
2023-04-27 01:04:37 +00:00
libraryupgrader 30c544e7e6 build: Updating npm dependencies
* grunt: 1.5.3 → 1.6.1
* stylelint-config-wikimedia: 0.13.1 → 0.14.0
  The following rules are failing and were disabled:
  * selector-pseudo-element-colon-notation

* cookiejar: 2.1.3 → 2.1.4
  * https://github.com/advisories/GHSA-h452-7996-h45h
* decode-uri-component: 0.2.0 → 0.2.2
  * https://github.com/advisories/GHSA-w573-4hg7-7wgq
* jpeg-js: 0.4.3 → 0.4.4
  * https://github.com/advisories/GHSA-xvf7-4v9q-58w6
* ua-parser-js: 1.0.2 → 1.0.34
  * https://github.com/advisories/GHSA-fhg7-m89q-25r3

Change-Id: I0b7c1d2324720a0e07f24cd79651c1166b22e406
2023-03-12 13:44:51 +00:00
jenkins-bot 9272edcbba Merge "Update eslint-config-wikimedia to 0.24.0" 2023-01-18 15:04:45 +00:00
Ed Sanders e4ce6db868 Update eslint-config-wikimedia to 0.24.0
Change-Id: I8299d287721eee6cb6d2354836e82812bf57badd
2023-01-18 14:39:04 +00:00
Vaughn Walters 33dc5d0464 selenium: Remove webdriverio npm package from the VisualEditor extension
The `webdriverio` package does not need to be an explicit dependency.
It is a dependency of `@wdio/cli`.

Bug: T325059
Change-Id: I11bb971f9014822790848655647a73a555c4ae3a
2023-01-10 18:38:31 -06:00
Umherirrender 4f4549c438 build: Update stylelint-config-wikimedia
Apply the latest version to libup-canary repo

Change-Id: I20fa0d8f30c27e73e90273cb405c5e048d46d927
2022-11-14 22:34:01 +01:00
Emeka Chukwukere 5b5ed387c9 Add basic end-to-end tests for action=visualeditor
Bug: T318403
Change-Id: I7a607edc69d8fcf51a634ce0f536548979eef95b
2022-09-28 18:28:05 +02:00
daniel 1c7468191b Add api-testing script to package.json
The test file is just a placeholder for now, so we can enable the CI job.
Actual tests will follow in a separate patch.

Bug: T318403
Change-Id: I8105f49f8898c8ebfd80eb898d30a49e58db5b25
2022-09-27 13:15:39 +00:00
James D. Forrester 05eaaa8a2d build: Updating grunt to 1.5.3
Change-Id: Icc076acec3e116e66833914a11edc87d11abdde1
2022-07-20 09:42:42 -04:00
James D. Forrester 2103c54849 build: Updating grunt-banana-checker to 0.10.0
Change-Id: I23562c7190dc908808ca8fbd53542886fb5fea10
2022-07-20 09:39:28 -04:00
Željko Filipin ba0b671fa9 selenium: Run only one test in Jenkins daily job
selenium-daily-beta-VisualEditor Jenkins daily job became really
unstable. Let's run just the simplest test for a few days to see if that
would help with job stability.

Bug: T296187
Change-Id: I858a3c5614277ea029fdabfd4468bb0d124e94d5
2022-06-02 15:43:43 +02:00
libraryupgrader 0166b79ecd build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 38.0.0 → 39.0.0
* php-parallel-lint/php-console-highlighter: 0.5.0 → 1.0.0
* php-parallel-lint/php-parallel-lint: 1.3.1 → 1.3.2

npm:
* grunt-eslint: 23.0.0 → 24.0.0
* meow: 3.7.0 → 3.7.0
  * https://github.com/advisories/GHSA-7p7h-4mm5-852v
* trim-newlines: 1.0.0 → 1.0.0
  * https://github.com/advisories/GHSA-7p7h-4mm5-852v

Change-Id: Id518b0dcafa3a6ce480c951c5ea7d0512aaa94a2
2022-05-20 10:06:25 +00:00
Željko Filipin 098e217055 selenium: Use @wdio/spec-reporter
Bug: T280331
Change-Id: Iaa9f8be21c208963ebe3da2062075dc938404172
2022-05-19 15:29:41 +02:00
Ed Sanders ab3b068671 build: Update stylelint-config-wikimedia to 0.13.0
Change-Id: I94a18ebc57ea04fe6246b63f6c9b5d5d8718dd4d
2022-05-04 22:54:48 +01:00
Ed Sanders e21acbe847 build: Update stylelint-config-wikimedia to 0.12.1
Change-Id: I989c038e86610ae2b724b3d9f08c9cd33047bfea
2022-02-20 13:59:31 +00:00
libraryupgrader aa28b52dc9 build: Updating npm dependencies
* eslint-config-wikimedia: 0.21.0 → 0.22.1
* ansi-regex: 5.0.1 → 5.0.1
  * https://github.com/advisories/GHSA-93q8-gq69-wqmw
* meow: 3.7.0 → 3.7.0
  * https://github.com/advisories/GHSA-7p7h-4mm5-852v
* string-width: 4.2.3 → 4.2.3
  * https://github.com/advisories/GHSA-93q8-gq69-wqmw
* strip-ansi: 6.0.1 → 6.0.1
  * https://github.com/advisories/GHSA-93q8-gq69-wqmw
* trim-newlines: 1.0.0 → 1.0.0
  * https://github.com/advisories/GHSA-7p7h-4mm5-852v

Change-Id: Iad400485f197940efd00dfabaddcae805365d116
2022-02-09 07:52:22 +00:00
osamaahmed17 40c5c4fe9e 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 and webdriverio
because async mode needs at least webdriverio v7.9.

Remove npm package: @wdio/sync.

Bug: T299756
Change-Id: I4a09ccddd8049f84232b035b664b42a4e98d7ff0
2022-02-03 10:41:35 +11:00
libraryupgrader e28310371f build: Updating npm dependencies
* wdio-mediawiki: 1.1.1 → 1.2.0
* ansi-regex: 5.0.0 → 5.0.1
  * https://github.com/advisories/GHSA-93q8-gq69-wqmw
* 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
* meow: 3.7.0 → 3.7.0
  * https://github.com/advisories/GHSA-7p7h-4mm5-852v
* node-fetch: 2.6.2 → 2.6.7
  * https://github.com/advisories/GHSA-r683-j2x4-v87g
* optipng-bin: 6.0.0 → 6.0.0
  * https://github.com/advisories/GHSA-44c6-4v22-4mhx
* string-width: 4.2.3 → 4.2.3
  * https://github.com/advisories/GHSA-93q8-gq69-wqmw
* strip-ansi: 6.0.1 → 6.0.1
  * https://github.com/advisories/GHSA-93q8-gq69-wqmw
* sugarss: 2.0.0 → 2.0.0
  * https://github.com/advisories/GHSA-566m-qj78-rww5
* trim-newlines: 1.0.0 → 1.0.0
  * https://github.com/advisories/GHSA-7p7h-4mm5-852v
* validator: 13.6.0 → 13.7.0
  * https://github.com/advisories/GHSA-qgmg-gppg-76g5
  * https://github.com/advisories/GHSA-xx4c-jj58-r7x6
* zopflipng-bin: 5.0.0 → 5.0.0
  * https://github.com/advisories/GHSA-44c6-4v22-4mhx

Change-Id: Idee4aef18cbc4d5ec29d28385081fc0c89ecd50c
2022-02-01 06:57:37 +00:00
Ed Sanders 33840e88ee build: Update eslint-config-wikimedia to 0.21.0
Change-Id: I19465a5ab3bf71cd97967fd1fac41c645f05a419
2021-11-10 14:52:56 -05:00
Željko Filipin 0593278d05 selenium: The first test
The first test just opens the page for editing and checks if it opened.

Bug: T284165
Change-Id: Ifffaf3e5ab14811605d96fcdcfdc1f773880e52c
2021-11-09 16:11:22 +01:00
libraryupgrader 5f5ba72b3a build: Updating dependencies
composer:
* php-parallel-lint/php-parallel-lint: 1.3.0 → 1.3.1

npm:
* stylelint-config-wikimedia: 0.10.3 → 0.11.1
  The following rules are failing and were disabled:
  * declaration-property-unit-disallowed-list

Change-Id: Ib918897328cff66642c453d3d394a4e262ed788d
2021-09-02 03:43:02 +00:00
libraryupgrader e6ad9eddff build: Updating npm dependencies
* grunt: 1.3.0 → 1.4.0
* hosted-git-info: 2.8.8 → 3.0.8
  * https://npmjs.com/advisories/1677 (CVE-2021-23362)

Change-Id: Ibbb79989dd9c92a9f5ac6c14d537de0cd0c9cd47
2021-05-07 21:18:30 +00:00
libraryupgrader c57080334e build: Updating eslint-config-wikimedia to 0.20.0
Change-Id: I5bc53208e31a20822d337d3c01ece358c0985e43
2021-04-08 06:54:47 +00:00
libraryupgrader 821fb74c1b build: Updating eslint-config-wikimedia to 0.19.0
Additional changes:
* eslint: Renamed `wikimedia/client` profile to `client-es5` (T277085).

Change-Id: I6d406d9020ce243aabc87c921ec23574267a3f78
2021-03-10 23:20:16 +00:00
libraryupgrader 738c3b3a34 build: Updating eslint-config-wikimedia to 0.18.2
Additional changes:
* Dropped .php5 and .inc files from .phpcs.xml (T200956).

Change-Id: I869e10c268d28dc059aecb11ea941c2d928e400c
2021-03-05 04:41:47 +00:00