Commit graph

21 commits

Author SHA1 Message Date
Ed Sanders 85a4e23008 build: Update devDependencies
Change-Id: I38b506d6e058f639e0e7d95c3e60616dbef5af10
2020-06-09 11:29:03 +01:00
Ed Sanders 26c78a2b90 build: Update linters
Change-Id: I1bbd7b567152e2ed19d40f113b329064e6a67b09
2019-11-15 16:27:21 +00:00
Ed Sanders f6950bcdc1 build: Update linters
Change-Id: I016f880e4e44a4550b9236d7c1701615203f4486
2019-10-07 16:24:49 +01:00
James D. Forrester dd87939792 build: Upgrade eslint-config-wikimedia 0.12.0, drop grunt-jsonlint
Bug: T220036
Change-Id: I279f56b251c53aa5deee74185ece69b2150509bb
2019-05-06 15:20:35 -07:00
James D. Forrester b693fec503 build: Upgrade eslint-config-wikimedia from 0.10.1 to 0.11.0
Change-Id: I649078e4282c2632f91ff74a9e655fa4c7a34bb0
2019-04-03 22:58:56 +00:00
Andrew Kostka 626d9d4188 Add first browser test
This adds a test which checks if the extension appears on the
Special:Version page.

This is an initial step for adding more browser tests to check
changes done in I26fe41c328157233cc5b06d38d2ba0f7b036a853

Change-Id: I9a9d1cd2a25277f2c430f4e80b51b72c1621f91b
2018-11-19 16:08:42 +00:00
Volker E e3007e9484 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 and multipass options.

Also updating SVGs accordingly.

Bug: T185596
Change-Id: Iec947431b3549e9f1fa1eaba58340aef96c0647b
2018-02-12 10:05:27 -08:00
Umherirrender 4c89ab4b62 Use json extension for .stylelintrc
Bug: T173516
Change-Id: I1629e74a301e76a436dcec8b363f09aebfcecac8
2017-08-19 09:39:19 +02:00
Umherirrender 696f1ced1f Use tabs in json
Exclude composer vendor folder from build

Change-Id: I9e28fc2fc7a4ee53dd5bdc8da78822ebb8a806ca
2017-08-03 15:19:10 +02:00
Umherirrender 085f28a969 Run stylelint also for less file
File was added with I6f9b85cd6cfdb055692b1f537d569c158900f7c9

Change-Id: I0ec5400422c5f8dc9f38c64dc3051a512fe20afe
2017-07-18 19:44:31 +00:00
Ed Sanders db1e5a5907 Remove separate stylelint config for VE
Change-Id: I94fbce9b572a08eba2c1c2290f6777fe2f465e01
2017-04-28 17:31:20 +01:00
Ed Sanders 22c17437ac Remove eslint:fix
Not very useful now rules are stable.

Change-Id: I51979e61e38a7891ddd3990fea81f0072cbb9250
2017-04-28 17:30:52 +01:00
Ed Sanders e0f297ae39 build: Mark Node file as ES6
Change-Id: I041ff8fa7d22a8e6a4aa6877c4136d8086593956
2017-03-20 10:47:54 +00:00
Ed Sanders 0882a5c2b0 build: Re-use MessageDirs in banana conf
Change-Id: Ifae29b342f8a018e68e28aacfd677d98bcd04b6b
2017-01-23 13:37:48 +00:00
Ed Sanders a42c656c53 build: Replace jscs+jshint with eslint
Change-Id: Ibcfab289a6dd4dcac853aa2e5338516994067cd5
2016-11-02 12:50:48 +00:00
Ed Sanders bac8dd6be7 Add stylelint and make required style fixes
Change-Id: I8a9def8056a72c3da0c066413e94311a1d839f5b
2016-05-17 18:21:30 +01:00
Ed Sanders 18f616b9b8 VisualEditor: Move code for Cite into this repo
This code has been developed over three years now in the repo of MediaWiki's
integration of VisualEditor. It has grown and developed significantly during
that time, but now is pretty stable. A number of hacks inside the MediaWiki-
VisualEditor code base have been used to prevent this code from being loaded
on wikis where the Cite extension is not deployed, but this state of affairs
is and always was meant to be temporary.

This code is under the MIT licence which is a tad messy, but not impossible.
It's clearly labelled as such. The list of authors has been updated to take
into account the influx of new functionality.

Bug: T41621
Bug: T104928
Change-Id: I39936ed83d5a60471a0a75da753f498e80aef234
2016-02-04 08:41:54 -08:00
Paladox 6564ed9fb7 Update packages
Update grunt-banana-checker to 0.4.0

Update grunt-jsonlint to 1.0.6

Update grunt-jscs to 2.5.0

Also support looking into sub folders for jshint and jscs.

Also fix some js code so

Replace

} ) ( mw, jQuery );

with

}( mediaWiki, jQuery ) );

Also remove a blank message that should not be there in gu.json

Also remove two blank messages in tl.json.

Change-Id: Ib8390de6fd6adfc4a9ad22c48c7872aac332d4ae
2015-12-19 09:52:30 +00:00
James D. Forrester 549e95ee5f build: Test JS code with jshint and jscs via npm
Change-Id: I4d20af87b900d10c20f1a2c3fff09dc3425d2e55
2015-11-18 16:54:55 -08:00
Kunal Mehta eee3d0cfc6 build: Adding configuration for jsonlint
Change-Id: I03b00e0aaa63fb49d68e0c5ee1b0613c2bb83f6c
2015-06-11 21:30:08 -07:00
Kunal Mehta dc91fefb94 test: Configuring banana-checker for i18n messages
Change-Id: I4e136299c2df7974693fb7ac0e64f81d3de2ea0d
2015-04-20 20:27:10 -07:00