Commit graph

26 commits

Author SHA1 Message Date
thiemowmde d2a244b753 Move Cypress tests under tests/ directory
Bug: T358851
Change-Id: I084f4e098c00d4c1bbcb0e692a2be3b1f8ce59a2
2024-04-04 13:06:26 +00:00
Adam Wight 5c7e7f4fbd linters should ignore generated docs
Change-Id: Ice9eef1ba6e2b158ab3f7a9f45a4d1a7a41824b8
2024-02-29 12:09:09 +00:00
mareikeheuer 0f801ea550 Port Cite web test suite to Cypress
Steps to implement:

 Copy over and adapt setup files, to install Cypress in the Cite code base.
 Port tests/selenium/specs/backlinks.js and supporting file cite.page.js to run under the Cypress environment, in a second patchset.
 Run the new suite in CI, replacing the previous selenium integration.
 Delete the selenium test suite.

Bug: T353436
Change-Id: Ie76371e18d8612daa7c7be741432c6f3e0b783b5
2024-01-17 11:45:04 +01:00
Ed Sanders 0d4bb626f1 Move eslint client config to modules, fix warnings
Change-Id: I86857b82fa7d5c47c0056da4ad270fcb2a4d965f
2021-11-03 16:38:31 +00:00
Volker E 048a887955 build: Remove 'grunt-svgmin' package
There are no SVGs left in Cite, hence removing package.

Change-Id: I608c1b7a4e9d989fc9d58ac29c57d6d9d18cae96
2021-05-17 17:51:41 -07:00
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