James D. Forrester
05fb44ae56
build: Upgrade eslint-config-wikimedia from 0.12.0 to 0.13.1
...
Change-Id: I43f407da92f59a8bf758cc2586e84aa5e18d9ab0
2019-08-02 09:51:07 -07:00
libraryupgrader
ef3906b82b
build: Updating dependencies
...
composer:
* mediawiki/minus-x: 0.3.1 → 0.3.2
npm:
* lodash: 4.17.11 → 4.17.14
* https://npmjs.com/advisories/1065
* CVE-2019-10744
* grunt-banana-checker: 0.7.0 → 0.7.1
Change-Id: Idaf7723adc2136f1fc39573897604c056f814e49
2019-07-16 04:47:13 +00:00
James D. Forrester
22344dae69
build: Upgrade stylelint-config-wikimedia from 0.5.0 to 0.6.0
...
Additionally a bump to grunt-image and grunt itself for security
reasons. Also, commit package-lock.json, which is what we do now.
Change-Id: I2beab15d7f5b1453ccbb3c46b6dd0800c78ed15b
2019-06-26 14:11:06 -07:00
James D. Forrester
aba4eeeda5
build: Upgrade eslint-config-wikimedia 0.12.0, drop grunt-jsonlint
...
Bug: T220036
Change-Id: Ia081ff5429547cf1c7e6d6e8b0cae94e8ca3e0b9
2019-05-06 13:33:16 -07:00
Ed Sanders
332aa1f3d2
build: Update eslint-config-wikimedia to 0.11.0
...
Change-Id: I5a294705eed1760e2d4dde33934d2ffb12e29525
2019-02-20 20:23:43 +00:00
jenkins-bot
c1d3f2c365
Merge "build: Upgrade grunt-banana-checker from 0.6.0 to 0.7.0"
2019-02-15 21:00:44 +00:00
Ed Sanders
c463e812ed
build: Update eslint-config-wikimedia to 0.10.1
...
Change-Id: I223b39d49167ef7a831208b523654c69ad0bea5b
2019-02-02 11:02:27 -08:00
James D. Forrester
d8e1a9be1f
build: Upgrade grunt-banana-checker from 0.6.0 to 0.7.0
...
Change-Id: I36712edb25ff3dd4ce16478b8614e85dd7a65902
2019-01-09 11:45:17 -08:00
Ed Sanders
74f6c4899c
build: Update eslint-config-wikimedia to 0.10.0
...
Change-Id: I63a0ebf0b31a0d5d4e680a4e2a5a0be4850be165
2019-01-08 17:00:09 +00:00
James D. Forrester
309d05cb38
build: Upgrade stylelint-config-wikimedia to 0.5.0 and make pass
...
Change-Id: I4c547757ed5a32ff98b1cf2670010db302bd8467
2018-12-03 13:06:59 -08:00
Ed Sanders
1a3e8a958c
build: Use eslint-config-wikimedia v0.9.0 and make pass
...
Change-Id: Idb57fc12e7822cf17e10dbb726480fc7de0ae199
2018-11-21 16:51:20 +00:00
James D. Forrester
5d00bca4e7
Update VE core submodule to master (2f27b1a2c)
...
New changes:
2915330a9 Avoid JSON strings in built demo files
62b0b1298 Move server files to /src
ddd99ab0c MediaSizeWidget: Add #updateDisabled() for disableable sub-widgets
Bug: T204185
Change-Id: Ied5b39608683ba7c9f056430a0a248f41e089d5a
2018-09-25 08:36:40 -07:00
Ed Sanders
8ea820ab43
build: Update devDependencies
...
grunt-mocha-test 0.12.7 → 0.13.3
grunt-stylelint 0.10.0 → 0.10.1
jimp 0.2.28 → 0.5.0
Change-Id: Ic2b1bcefdce6e8f71c623eec877151b7233c9556
2018-09-15 21:45:49 +01:00
James D. Forrester
b2b352836d
build: Bump eslint-config-wikimedia from 0.7.2 to 0.8.1
...
Change-Id: Ide036b52b394e1b3b6f5493406a3633bd89e2cc5
2018-09-10 08:49:10 -07:00
James D. Forrester
4755d7f1be
build: Upgrade eslint-config-wikimedia to 0.7.2 and simplify config
...
Change-Id: Ib78c51a177b9f4b4764587232c7d32ffcfdd8aca
2018-08-14 11:02:20 -07:00
James D. Forrester
6e71e1c0c3
build: Bump devDependencies related to the screenshots task
...
This fixes a bunch of warnings from `npm audit`.
Change-Id: I31321f2f19421944787279923e010f8093789d5e
2018-07-09 10:50:40 -07:00
James D. Forrester
ceab9e6510
build: Bump linters for eslint 5 and make pass
...
Change-Id: I88627028e5806c2fdceb76fd26bcb57d44ed4c20
2018-07-06 10:58:18 -07:00
Ed Sanders
a7f5a76bca
build: Introduce eslint-plugin-qunit
...
Change-Id: I0a169916eaf260500ca6a172e6fb2b0c61f8d422
2018-05-30 21:04:02 +01:00
James D. Forrester
c07d4815e3
build: Follow-up 99d3320573
: Drop babel-polyfill, never used
...
Change-Id: I3eccd0c345b2c528bbb9458d404a3e0c91ae88f5
2018-04-25 12:59:50 -07:00
James D. Forrester
3e8f2edc83
build: Bump some devDependencies to latest
...
grunt 1.0.1 → 1.0.2
grunt-contrib-watch 1.0.0 → 1.0.1
grunt-image 4.1.0 → 4.2.0
grunt-stylelint 0.9.0 → 0.10.0
stylelint 8.2.0 → 9.2.0
stylelint-config-wikimedia 0.4.2 → 0.4.3
Leaving babel-polyfill, grunt-mocha-test, jimp, mocha and selenium-webdriver
alone for now.
Change-Id: Ibea983670108a56ddbf748e140831147e31da329
2018-04-25 12:35:07 -07:00
Antoine Musso
2aadc18105
build: npm/rake entry point for screenshots upload
...
We have a Jenkins job to take screenshots of VisualEditor and upload the
result to commons.wikimedia.org. That roughly does:
npm install
node_modules/.bin/grunt screenshots-all
bundle install
bundle exec upload
However on CI, the Docker container only accepts 'npm run-script XXX' or
'bundle exec rake YYY'.
Add a npm script 'screenshots-all' invoking 'grunt screenshots-all'.
Add a rake task 'commons_upload'. I have added a basic check to make
sure environment variables are properly set before invoking the upload
script.
Thus on CI the usage will become:
npm install
npm run-script screenshots-all
bundle install
bundle exec rake commons_upload
Which match the CI convention.
Bug: T189122
Change-Id: I221ed8d6178dd036eac287f0f811834a6d4ffd22
2018-03-07 23:23:30 +01:00
Volker E
4194d2ea63
build: Use SVGO option of 'grunt-image'
...
Making use of SVGO for further minification of
the included SVGs, based on MediaWiki's SVG Coding Conventions.
Also:
- Updating 'grunt image' to the latest version
- Improving SVGs accordingly
Bug: T185596
Change-Id: I882f0c6e2b5011fd51edb6106a3e22581989b834
2018-02-08 17:41:11 +00:00
Ed Sanders
7e055832b9
build: Update linters
...
Change-Id: Idafc3989c43613fdc4ea9da66495fc4003f7f549
2018-02-04 22:11:22 +00:00
Ed Sanders
dc3ed6cec0
build: Update stylelint 0.4.1->0.4.2
...
Change-Id: I9d67e4224eb6298e20574a201eeee559ab3a7504
2017-10-26 21:04:07 +01:00
Ed Sanders
9ebff2fb12
build: Update eslint-config-wikimedia 0.4->0.5
...
Change-Id: I57b017752cc377f3e8cc4e6163bebfecd878ae51
2017-08-25 16:08:08 +01:00
Ed Sanders
835a775a49
build: Upgrade grunt-eslint from 19.0.0 to 20.0.0
...
Mostly indent and regex fixes.
Change-Id: Iaf9d02363c78cb71deec5c4cab53a05b67f60600
2017-07-18 12:55:33 +01:00
James D. Forrester
f7e5ebb845
build: Bump a couple of devDependencies to latest
...
grunt-banana-checker 0.5.0 → 0.6.0
grunt-stylelint 0.7.0 → 0.8.0
Added stylelint peerdependency directly.
Change-Id: Ib5da82ae60f4f49e572459c8e53f9125ad422ee8
2017-07-06 13:40:38 -07:00
Ed Sanders
a866678c36
build: Update eslint to 0.4.0 and make pass
...
Change-Id: Id02a26bad70504cfe90bee6aab0fa3ea646b15d7
2017-05-04 21:28:17 +00:00
Umherirrender
a16812428e
Use tabs to indent in json
...
Change-Id: Ib0372c86bcaac368f4dd68a512273b504ca9b6b2
2017-03-31 23:50:07 +02:00
James D. Forrester
dddd2c0180
build: Bump grunt-jsonlint to latest and make pass
...
grunt-jsonlint 1.0.8 → 1.1.0
Change-Id: I4a5cdd39f6215cc61a1ef530386a87fdcb0c0088
2017-02-17 16:12:12 -08:00
James D. Forrester
cc239a08da
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 15:23:12 -08:00
Ed Sanders
8a64006aa4
Introduce grunt-image to minify screenshots
...
Makes the task a bit slower (~50%) but image filesizes
are reduced by 75% on average.
Change-Id: I90b7a4b7b4a1e4d3452d4e791fef55cdfc780f94
2017-02-03 15:19:12 +00:00
James D. Forrester
f24e34de3c
build: Bump eslint-config-wikimedia to v0.3.0 and make pass
...
Change-Id: I7449c11aa63c50fda667265c32021439cc53471f
2016-11-15 15:05:05 -08:00
James D. Forrester
36befda61c
build: Replace jscs and jshint with eslint
...
It's new, it's fresh, it's amazing, it's here.
Change-Id: I5dc784411f704685ed5cc763a2b2b1c5d3e5a610
2016-10-28 18:33:15 +00:00
James D. Forrester
1840f4fc71
build: Bump stylelint-related devDependencies to latest
...
grunt-stylelint 0.4.0 → 0.6.0
stylelint-config-wikimedia 0.2.2 → 0.3.0
Change-Id: Ib7494b63fa8faa84ca0be69321d5888d5af9048f
2016-08-03 18:52:26 +00:00
James D. Forrester
7b6ae3710c
build: Downgrade grunt-jscs to 2.8.0 to avoid cst bug
...
Bug: T140367
Change-Id: Ice3afeefda8628ec9b0f4f72379770b484a2cb11
2016-07-14 08:48:38 -07:00
Ed Sanders
746321a29f
Add screenshots grunt task for taking documentation screenshots
...
Imported from https://github.com/zeljkofilipin/language-screenshots
Bug: T119482
Bug: T132574
Co-authored-by: Željko Filipin <zeljko.filipin@gmail.com>
Change-Id: Idade622d1f3db0eb4b5f3fbc1a0eee401feeb600
2016-06-27 12:19:35 +01:00
James D. Forrester
5ecf40f51e
build: Bump devDependencies to latest and make pass
...
babel-polyfill 6.8.0 → 6.9.1
grunt-jscs 2.8.0 → 3.0.0
grunt-jsonlint 1.0.7 → 1.0.8
grunt-stylelint 0.3.0 → 0.4.0
stylelint-config-wikimedia 0.2.0 → 0.2.2
Change-Id: I4db467c7f2bc291a94e7bab86d18e48a44f6054c
2016-06-07 17:17:02 +01:00
jenkins-bot
5698e855e3
Merge "Update stylelint config version and make a pass"
2016-05-24 21:40:41 +00:00
Ed Sanders
88c8f2e389
Remove grunt-cli
...
Included by grunt.
Change-Id: Ibf76b74ff50d6011da3061b2634c2ef4d7a3c843
2016-05-24 17:30:12 +00:00
Ed Sanders
7b8931193a
Update stylelint config version and make a pass
...
Change-Id: I58007c3976019c8cfe96fd1fc0474d9e80f99f64
2016-05-24 13:41:13 +01:00
James D. Forrester
94fcafb684
build: Bump grunt-stylelint to v0.3.0
...
Change-Id: I8e6eb487a1ae181c9279aaf2c0aec5cccc8d9427
2016-05-19 19:04:10 +01:00
James D. Forrester
8c7ed92288
Update VE core submodule to master (eeaf1e2)
...
New changes:
c54a48a build: Fix watch list (csslint -> stylelint)
58ba3d9 Add stylelint rules for @-rules
3f8c75a Stylelint: Add rule for unsupported browser features
3b96ff3 Fix minimum Opera version (15 -> 12)
9a1110b Stylelint: No ID selectors
9800bb8 build: Remove remaining references to csslint
b6ab14a stylelint: Re-enable features by names
6cc1f3c Move stylelint to npm
1d15fa0 build: Bump stylelint version to v0.2.0
ccc1724 stylelint: Use the preset rather than extending
Change-Id: I22fa8098592338a5e912aba9ad21131b21d9c0ea
2016-05-18 07:06:53 +01:00
Ed Sanders
1dc780bcbd
build: Use grunt-stylelint from npm
...
Add .stylelintrc as a symlink
Change-Id: I3c6d3f7f988f59b12655627e67ffb61fc7f882cd
2016-05-17 16:24:39 +01:00
Ed Sanders
99d3320573
build: Replace csslint with stylelint
...
For now just use the rules file in lib/ve, but eventually
this will be a preset.
Change-Id: I7fd79d3e1dce37aef066d416cd969e5fff1e962f
Depends-On: I17e0d23ddfedf64985495ab35d113ea08c03b1df
2016-05-16 22:30:49 +01:00
James D. Forrester
5308a47e96
build: Bump various devDependencies to latest
...
grunt 0.4.5 → 1.0.1
grunt-cli 0.1.13 → 1.2.0
grunt-banana-checker 0.4.0 → 0.5.0
Change-Id: Idcd66807d03c85005ca97f5563251e814d15813b
2016-04-19 01:37:25 +00:00
James D. Forrester
8ee5c6f818
build: Bump devDependencies to latest
...
grunt-contrib-watch 0.6.1 → 1.0.0
Change-Id: Ieea149cd930e470ec7f63e7c5cc75aef60a5a271
2016-03-17 19:42:41 +00:00
James D. Forrester
ee9e6cb20e
build: Bump all devDependencies to latest
...
* grunt-contrib-copy: 0.8.2 -> 1.0.0
* grunt-contrib-csslint: 0.5.0 -> 1.0.0
* grunt-contrib-jshint: 0.12.0 -> 1.0.0
* grunt-jscs: 2.7.0 -> 2.8.0
Change-Id: I8c4b3e1ad4e10217e9e048eacd8dedc8fe5caf02
2016-03-10 08:19:48 -08:00
James D. Forrester
e6e492efc6
build: Bump various devDeps to latest and make pass
...
* grunt-contrib-jshint: 0.11.3 -> 0.12.0
This version of the linter cleans up a number of options. 'es5' is now assumed to be
true by default, and replaced as 'esversion'; 'latedef' is extended to also cover
functions' defintions, disabled for us for now; 'futurehostile' is introduced to aid
future-incompatible names for ES6+ support.
I adjusted ve.init.mw.DesktopArticleTarget.init.js based on this, as this file is
meant to be loaded by all JS-capable clients to determine if it is (amongst other
things) capable of ES5, so now we assert ES3 compatibility via jshint.
* grunt-jscs: 2.5.0 -> 2.7.0
Minor version bump that doesn't affect us.
* grunt-jsonlint: 1.0.6 -> 1.0.7
Trivial version bump that doesn't affect us.
Change-Id: Ieb7b6748b0cecf275cfc284fc66617189372461f
2016-02-07 19:41:21 -08:00
James D. Forrester
90045db7a3
build: Update various devDependencies to latest
...
* grunt-contrib-copy : 0.8.0 -> 0.8.2
* grunt-jsonlint : 1.0.4 -> 1.0.6
* grunt-jscs : 2.1.0 -> 2.5.0
Change-Id: Ia66996d4ccf48bb8baab792fda5cd67863b31575
2015-12-11 12:59:17 -08:00