Commit Graph

63 Commits

Author SHA1 Message Date
Volker E
e67d5bd33c build: Update SVGO to v3.0.2 & re-crush icons
svgo         2.8.0  →   3.0.2

Amending to new `cleanupIds` plugin name.
Re-crushing SVGs while at it.

Bug: T339162
Change-Id: I9804d6fa3c81e3c85e6d89e45079736d0934c465
2023-06-15 02:36:53 -07:00
libraryupgrader
9f60b97773 build: Updating npm dependencies
* grunt-banana-checker: 0.10.0 → 0.11.0
* stylelint-config-wikimedia: 0.14.0 → 0.15.0

Change-Id: I9b17b4f8d9262670cc6229d5b2df5d8b100e49f3
2023-06-02 16:14:57 +00:00
libraryupgrader
4fd6c8f924 build: Updating @wikimedia/codex-design-tokens to 0.11.0
Change-Id: I32a46af91869bddcf6ecd64bc01ba3061eda61f0
2023-05-24 01:37:36 +00:00
Niklas Laxström
124b1a0ba0 Update instructions for converting ttf files
Change-Id: I51d18bdfd86dcc4b5eb665efa1adeb7062a6f141
2023-05-17 11:39:07 +03:00
libraryupgrader
69ad02da11 build: Updating @wikimedia/codex-design-tokens to 0.10.0
Change-Id: I671dc4e4c90cc7b26ce0476bbf7a2d0096427bcb
2023-05-12 09:24:32 +00:00
libraryupgrader
d0d88ee40e build: Updating eslint-config-wikimedia to 0.25.0
Change-Id: I56a69db1b780752b33ad1ed0babee8bb280a4aa3
2023-05-05 18:51:36 +00:00
Volker E
d5285655fd styles: Replace 'mediawiki.ui/variables' call with skin variables
- Replacing 'mediawiki.ui/variables.less' `@import`
  with new Codex design tokens as external library. We're using the
  legacy values as UniversalLanguageSelector has been a desktop first
  extension and those values are also used by Vector skin.
  The values replaced are anyways only touching colors, borders or
  transitions which are the same in normal and legacy.
  These will be replaced by skin-aware 'mediawiki.skin.variables.less'
  standard with dependency of UniversalLanguageSelector upped
  to MW 1.42.0.
- Replacing several static values with new Codex design token featuring
  skin variables, in categories `background-color`, `color`,
  `border-*`, `box-shadow`, `opacity` and `transition`.

Note, that this change should result in same rendering of the
extension, only properties that already have an equal token are
replaced.

Bug: T332541
Co-Authored-by: Volker E. <volker.e@wikimedia.org>
Change-Id: Ic563fa84bf8e76fd62f14487924d7d6fd5c1a065
2023-05-04 04:44:44 +00:00
libraryupgrader
02cd6612fe 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: If0c5e7bc0c15e356171684f03e2ded5e9421be3f
2023-04-29 13:31:50 +00:00
libraryupgrader
f4bbc55dba build: Updating npm dependencies
* eslint-config-wikimedia: 0.22.1 → 0.24.0
  The following rules are failing and were disabled:
  * strict

* 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

Change-Id: If82350c9b111b8d590d0f89d6f51caa33ef46f30
2023-03-17 04:56:16 +00:00
libraryupgrader
9eebaad7db build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 39.0.0 → 40.0.1

npm:
* stylelint-config-wikimedia: 0.13.0 → 0.13.1

Change-Id: Iab2e3764141865f3bc6e53f842c87d09b18bbbbe
2022-11-17 01:02:45 +00:00
libraryupgrader
7e8976ecf0 build: Updating grunt-stylelint to 0.18.0
Change-Id: I46d9c4073a1ba8a5df4b9e70b1e46309324418c9
2022-11-13 10:25:24 +00:00
libraryupgrader
05b500b9b6 build: Updating grunt-banana-checker to 0.10.0
Change-Id: Iae52e6e34391e4d0291e5816db76bcc96fd6d257
2022-10-07 08:23:40 +00:00
libraryupgrader
2c732ea320 build: Updating grunt to 1.5.3
Change-Id: Idf8fe9581f1b7068a1cfa39d6dcbd0ccf771e225
2022-05-27 03:23:19 +00:00
libraryupgrader
44f4805cbb build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 38.0.0 → 39.0.0
* mediawiki/mediawiki-phan-config: 0.11.0 → 0.11.1
* 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: 1.4.1 → 1.5.2
* stylelint-config-wikimedia: 0.11.1 → 0.13.0

Additional changes:
* Set `name` in package.json.

Change-Id: I31e94f6b5ca7d41a2c256e97cc21769b729c10f0
2022-05-21 16:59:16 +00:00
Ed Sanders
02e17c5242 build: Update eslint-config-wikimedia to 0.22.1
Change-Id: I02692eeabb23c5b99997faa7a17d42f019148ed1
2022-03-08 09:41:49 +00:00
Volker E
5abe986953 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: I7c9eb84fdaeb50f6ff04c9e5cd2f005e129d555a
2022-02-27 23:59:05 +00:00
Amir E. Aharoni
4f257fe8a7 Update grunt-stylelint to 0.17.0
Recommended by `npm audit`.

This required also adding postcss-less and changing Grunt
configuration to support it.

Change-Id: I22861dcdf761068ce37ed1b03c6bbfba1247860a
2022-01-31 08:07:55 +00:00
libraryupgrader
35f48f6587 build: Updating stylelint-config-wikimedia to 0.11.1
The following rules are failing and were disabled:
* declaration-property-unit-disallowed-list

Change-Id: I80c8761527844d1cd4d53b21517dc25d2b425689
2021-09-04 23:17:25 +00:00
libraryupgrader
05eb6b00f0 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)
* trim-newlines: 3.0.0 → 3.0.1
  * https://npmjs.com/advisories/1753 (CVE-2021-33623)

Change-Id: I495a2df80eaf8f96a635b4d4e2cc80813922ddb0
2021-07-24 03:28:36 +00:00
Volker E
8354e280b6 build: Update SVGO to latest v2.3.0 and re-optimize SVGs
SVGO v2.x changed configuration to JS, amending configuration.
Adding new 'minify-svg' npm script.
Also re-optimize SVGs.

Bug: T278656
Change-Id: I88ebed650be0d20b71bca6f15f3aa70b6b5eb42a
2021-05-27 11:53:05 -07:00
libraryupgrader
a47ee3c476 build: Updating npm dependencies
* grunt: 1.3.0 → 1.4.0
* hosted-git-info: 3.0.8 → 2.8.9
  * https://npmjs.com/advisories/1677 (CVE-2021-23362)
* postcss: 7.0.35 → 8.2.15
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)

Change-Id: I51d1b77003ed2a2c303cdd87e79ccc9be1a074da
2021-05-14 10:22:05 +00:00
libraryupgrader
0e9dbf344c build: Updating eslint-config-wikimedia to 0.20.0
Change-Id: Icadd4a33d781eb2795e1c3bbfa9e088339d88527
2021-04-15 02:16:50 +00:00
libraryupgrader
e2ab4bb1c3 build: Updating dependencies
composer:
* mediawiki/minus-x: 1.1.0 → 1.1.1

npm:
* eslint-config-wikimedia: 0.17.0 → 0.19.0
  The following rules are failing and were disabled:
  * compat/compat

Additional changes:
* Added the "composer phan" command to conveniently run phan.
* eslint: Renamed `wikimedia/client` profile to `client-es5` (T277085).

Change-Id: Ib31cbcd8c615d2e6abf9ee30f0f4d7b7baa54e2e
2021-04-07 11:10:07 +00:00
libraryupgrader
4cbb7dbacf build: Updating npm dependencies
* grunt-stylelint: 0.15.0 → 0.16.0
* stylelint-config-wikimedia: 0.10.1 → 0.10.3

Change-Id: I3f607402859275cdcfe34dcc5ed62ab48985a6c5
2020-11-22 12:05:00 +00:00
libraryupgrader
da796db073 build: Updating npm dependencies
* eslint-config-wikimedia: 0.16.2 → 0.17.0
  The following rules are failing and were disabled:
  * no-shadow

* grunt: 1.2.1 → 1.3.0

Change-Id: I35acdb64081ede997f799ac57624403d1e83ec11
2020-09-05 01:20:51 +00:00
Ed Sanders
e128c51356 build: Update eslint-config-wikimedia to 0.16.2
Change-Id: Iea4b73bdceb66e113b7f9c9244ae6b37a3ce205f
2020-07-09 16:40:05 +01:00
libraryupgrader
4ad04adb9f build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 29.0.0 → 30.0.0

npm:
* eslint-config-wikimedia: 0.15.0 → 0.15.3
  The following rules are failing and were disabled:
  * mediawiki/class-doc

* grunt-stylelint: 0.14.0 → 0.15.0
* stylelint-config-wikimedia: 0.9.0 → 0.10.1

Change-Id: I5daae7788d77df3eeb56228718cb54b98c49ae4d
2020-04-22 22:16:56 +00:00
libraryupgrader
e62cefbad5 build: Updating grunt-banana-checker to 0.9.0
Change-Id: Ibdb3458f01d79ce4f20f066c9e0cb0a8bd725f7a
2020-04-19 22:10:41 +00:00
libraryupgrader
93f1c0a19f build: Updating npm dependencies
* minimist: 0.0.8 → 1.2.5
  * https://npmjs.com/advisories/1179
* acorn: 7.1.1 → 7.1.1
  * https://npmjs.com/advisories/1488

Change-Id: Ie1b0d453d8c2b002ee1eb53c3a69ddf2df038b80
2020-03-19 18:57:23 +00:00
libraryupgrader
1fbf5f97bc build: Updating npm dependencies
* grunt-stylelint: 0.13.0 → 0.14.0
* stylelint-config-wikimedia: 0.8.0 → 0.9.0

Change-Id: Ic26989566157dd688077800fcb5302d2a24efe62
2020-02-21 04:11:01 +00:00
libraryupgrader
a19a9791f3 build: Updating npm dependencies
* stylelint-config-wikimedia: 0.7.0 → 0.8.0
* grunt-stylelint: 0.12.0 → 0.13.0

Additional changes:
* Also sorted "composer fix" command to run phpcbf last.

Change-Id: Ib1790ffb8818752c89e8cd075a62c2dc5cbf0daf
2020-01-10 06:06:36 +00:00
Ed Sanders
b105c2cadc build: Update linters
Change-Id: Ib83952a64224ab550f64975285e60713225b23b7
2019-11-12 14:45:01 +00:00
Ed Sanders
dae53b628c build: Update linters
Change-Id: Ib513d9fe879fb0c848cdfefaaaa753cc7279e242
2019-09-17 14:55:46 +01:00
libraryupgrader
304f26e7e2 build: Updating npm dependencies for security issues
* Updated stylelint-config-wikimedia to 0.6.0, addressing:
  * https://npmjs.com/advisories/786

Committed package-lock.json (T179229) too.

Change-Id: Ia5236226f931240fc97c3912bc2043c4196b89d6
2019-06-09 02:48:54 +00:00
James D. Forrester
be400fe751 build: Upgrade eslint-config-wikimedia 0.12.0, drop grunt-jsonlint
Change-Id: Ie5c456ce74674194fd10b3e05a283f32bac60f2f
2019-05-07 11:19:24 -07:00
Kartik Mistry
092182786d Update package.json
Fixes security issue detected by `npm install`.

Change-Id: I53a67f564b73a19837c880ae3c3401f3e4f86a7d
2019-04-01 15:12:42 -07:00
Ed Sanders
c080452013 build: Update eslint-config-wikimedia to 0.11.0
Change-Id: Ic59891fab5f8e35420bddbed34072841883fa543
2019-03-13 23:41:14 +00:00
Ed Sanders
7bf345669a build: Update linters
eslint-config-wikimedia      0.8.1  →   0.9.0
 stylelint-config-wikimedia   0.4.3  →   0.5.0

Change-Id: I0f55e743c2f38bb8910931c3989a6516e0527703
2018-12-10 14:24:24 +00:00
Ed Sanders
244dc55084 build: Update eslint
Change-Id: Iad621ac54d3e1f69f382462d5fa3e12bc8e138f1
2018-11-05 08:13:05 +00:00
Ed Sanders
2024009482 build: Update linters
Change-Id: I20e4794d0f565a284917f35d15736e3f33523856
2018-10-02 16:45:00 +00:00
Alangi Derick
445087e5fe Add recent pattern for ESLinting to repo
Use of all: '.' in Gruntfile.js for eslint config and
eslintIgnore in package.json to ignore linting the "vendor/"
etc directory.

Bug: T203648
Change-Id: I65756ab3b6f413021cedeb22c7933c6cffa2cb78
2018-09-06 18:05:42 +00:00
Volker E
f3d48beef7 build: Bring SVGO optimization to build step
Enabling SVGO automation with 'grunt-svgmin' and conservative
plugin settings to build step, among those:
- enable removeRasterImages and sortAttrs,
- disable cleanupIDs, removeDesc, removeTitle, removeViewBox &
  removeXMLProcInst and
- make use of pretty, indent and multipass options.

Also updating SVG accordingly.

Bug: T185596
Change-Id: I0030a711a2947ca8c1eb4e56d8540661c72a2639
2018-05-20 08:55:05 +00:00
Santhosh Thottingal
c818cf2800 Remove temporarily forced postcss-less version
postcss-less issue is now resolved and new version released.
Also a spacing related error is fixed

Change-Id: I0d768d29d2003fb4373436d957efcf0cec84286f
2018-03-27 16:13:32 +05:30
Niklas Laxström
3a70d258d5 Lock postcss-less to 1.1.3
Both 1.1.4 and 1.1.5 fail. Because of the dotdotdor issue it is
impossibly to know whether the 1.1.5 failures are legitimate.

Change-Id: I813d4767c27ef16bd6fc67577fe722548406cce2
2018-03-26 16:32:18 +02:00
Niklas Laxström
3a0f01643b Update packages
I was getting the following warning message:
npm WARN grunt-stylelint@0.8.0 requires a peer of stylelint@^7.8.0 but none was installed.

Change-Id: I5e671c5d89d315c3ee691dacda4c85ff3ff710a2
2018-01-31 15:58:38 +01:00
Ed Sanders
447c09d462 build: Update linters
Change-Id: I45540db95711b461ded3630894bd1f149c24ff19
2017-11-29 15:02:47 +00:00
Kartik Mistry
ca45dc7404 Update eslint and stylelint and fixes
Change-Id: I02e615e0efa95b673702f1ce8c957a37397ced13
2017-11-25 08:34:04 +05:30
Antoine Musso
20e789c13e Define npm peer dependency explicitly
npm 3 requires dependencies to be explicitly defined.

Bug: T172094
Change-Id: Ic640ccf0f577e47036d473892522ea758014fab4
2017-07-31 13:42:52 +02:00
Ed Sanders
2787fa4543 build: Update eslint to 0.4.0
Change-Id: I1931699c578de724996649838b73d514e1e03477
2017-05-04 22:17:58 +01:00
James D. Forrester
16db940d1f build: Bump stylelint and make pass
grunt-stylelint              0.6.0  →   0.7.0
 stylelint-config-wikimedia   0.3.0  →   0.4.1

Change-Id: Id87b8df04d415e1f1058a4042a31408236402037
2017-02-17 16:27:15 -08:00