Commit graph

27 commits

Author SHA1 Message Date
Željko Filipin 2abc4a9256 Selenium: Create selenium-daily npm script
The script is needed for the new Docker-based Jenkins jobs (running daily and targeting beta cluster).

Bug: T188742
Change-Id: I1cca2398857c693d9a8f4dbbb2cf9d25b5124f83
2018-07-06 14:45:09 +00:00
Željko Filipin 53d849b3c9 selenium: Make it possible to run tests from Echo folder
Until now, Echo tests had to be run from mediawiki/core folder.

Add an independant 'npm run selenium-test' entry point
for local development. It comes with a minimal wdio.conf.js file that contains
only non-default settings, and runs only specs from this extension.
This also makes it so that screenshots are saved to this repo's
log directory instead of core's.

Bug: T171848
Change-Id: I1396f8d856c6cb1ad9818abf4ba09a4fcefdcfdc
2018-06-22 14:17:05 +00:00
Volker E c9403011c8 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
- don't use multipass.

Also updating SVGs accordingly.

Bug: T185596
Change-Id: I2288c7576ac96f8b5c4d5b8671218fceefaf6037
2018-02-09 23:06:28 -08:00
Ed Sanders 2dc9a454d2 build: Update linters
Change-Id: I717ee9a58e6a8c12b54c64b46ebb2682b1ad5274
2018-02-04 21:23:28 +00:00
Ed Sanders 892ba8e5fe build: Update eslint and other linters
Change-Id: I68b74742bea0c3d4c8e359fd7850beaa6bbc4190
2017-10-17 13:53:08 +01:00
Antoine Musso b10b465ed2 Define npm peer dependency explicitly
npm 3 requires dependencies to be explicitly defined.

Bug: T172094
Change-Id: Ic640ccf0f577e47036d473892522ea758014fab4
2017-07-31 12:49:00 +02:00
Ed Sanders 571223a206 build: Update eslint to 0.4.0 and make pass
Change-Id: I30dd0e1ee56dbcbb7c60608a401179e2d37557ff
2017-05-04 20:57:37 +00:00
Umherirrender e064b7f1fc Use tabs to indent in json
Change-Id: I20811dc220cd020b1f795cad62d690f142b68643
2017-03-22 22:23:56 +01:00
James D. Forrester 988eea9da4 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:41:15 -08:00
Ed Sanders c8d24ebd17 build: Replace jscs/jshint with eslint
Change-Id: Iee1d1b20ed31e636bfb8fc8cf9b18ff328bf608c
2016-11-23 15:25:59 -08:00
Volker E 6d2e560c1e Introduce stylelint
Introducing stylelint with configuration rules compliant to
Wikimedia CSS Coding Standards 'stylelint-config-wikimedia', nullifying
some for now and making majority pass.

Change-Id: I2c4acee41c9b56d9b00e2a2c5b7ab0ab5de454ce
2016-10-04 18:15:02 -07:00
Moriel Schottlender 2d184c087c Add JSDuck support and fix errors
Change-Id: I7816110862d9ca1b16e2ec9ce842d240bee6b46b
2016-05-11 14:07:12 -07:00
James D. Forrester cc3971006b build: Bump npm devDependencies to latest
grunt-contrib-jshint  0.12.0  →  1.0.0
 grunt-contrib-watch    0.6.1  →  1.0.0
 grunt-banana-checker   0.4.0  →  0.5.0
 grunt-jscs             2.7.0  →  2.8.0

Change-Id: I52d27dd66103a7fe954117524e489fd5916305af
2016-03-24 00:58:54 +00:00
Ricordisamoa 1f24e0589d build: Update grunt-jscs to 2.7.0 and disable failing rules
Change-Id: I81cfe364b72653a99300be2f9a7c289dce899b69
2016-02-29 16:42:32 +01:00
Paladox 7e0a51b37f build: Remove grunt-contrib-csslint
This is no longer needed and useless since we switched all css files to
less.

Change-Id: I6c0ea55c236be94f3b612de2470585616d831dd8
2016-01-18 19:51:04 -08:00
Paladox 5f16851fcd build: Update grunt-contrib-jshint to 0.12.0
Change-Id: I38be12c166512dda8bd0cb7d4d336b7c6684e77d
2016-01-19 03:44:22 +00:00
Kunal Mehta 8c0772c94b build: Updating development dependencies
* grunt-jsonlint: 1.0.6 → 1.0.7

Change-Id: I7ad87b06bd568e1b125fa5ccbe8f0b846f572f25
2015-12-29 11:23:54 -08:00
Paladox eed93d18b9 Update grunt-jsonlint to 1.0.6
Change-Id: I14701a8168e98c3a10a1269324222ebc9772e328
2015-12-09 21:50:29 +00:00
Kunal Mehta f0b5b64328 build: Updating development dependencies
* grunt-banana-checker: 0.2.2 → 0.4.0

Change-Id: I7e0eed45794f9188e8d537c60ac8fa04af6bf1f0
2015-10-11 11:43:43 -04:00
Paladox cb0b254915 Remove jshint from package.json
We use grunt-contrib-jshint for jshint.

Change-Id: I83e96471a3253a635107d351fc8f8f2f3d8c6286
2015-10-05 12:16:47 +00:00
Siebrand Mazeland 33126b69aa Update formatting
In preparation of Code Sniffer based updates.

Change-Id: Id5d43332b44a37665d57dc24ef8c432bc65b2f6a
2015-10-03 23:28:54 -04:00
James D. Forrester 59efdc5184 build: Bump grunt-contrib-jshint from 0.11.2 to 0.11.3 to fix upstream issue
Change-Id: I5e9a3e0665bb894af3a005be46053fbdae4a4baa
2015-09-03 14:20:47 -07:00
Kunal Mehta 2c71920c5c build: Adding configuration for jsonlint
Change-Id: I3c0d0c353a75bcc9da5dd3706d6c5dc6d34570fd
2015-06-11 21:32:18 -07:00
Kunal Mehta e2eee93c4d build: Updating development dependencies
* grunt-contrib-csslint: 0.2.0 → 0.4.0
* grunt-contrib-jshint: 0.10.0 → 0.11.2
* grunt-banana-checker: 0.2.0 → 0.2.2
* jshint: ~2.5.0 → 2.8.0

Change-Id: Ibb94cf3d1d4cc71d9342165fd9b6c4ad18d58f07
2015-06-05 17:14:09 -07:00
Kunal Mehta cd1885e3b7 Don't depend on global grunt install
Change-Id: Iadc396247410688b58281bfe43df1888e0a16f83
2015-06-01 18:04:14 -07:00
Roan Kattouw 5aefeb3f2e Add Grunt infrastructure for CI
* Update package.json based on Flow's
* Add Gruntfile.js based on Flow's
* Add .csslintrc and .jscsrc with rules to silence errors for now

Change-Id: Ia8e23537d8dccbcff9ee336f667dc463590c0235
2015-05-01 20:35:23 -07:00
Erik Bernhardson 71c7e02858 Directory reshuffle, add dev tools
* Port Flow Makefile to Echo
* Move resources to Resources.php

Change-Id: I75e96cc1e51a7768600ffc083550fc94ea9d1e6c
2014-08-01 22:38:41 +00:00