Commit graph

24 commits

Author SHA1 Message Date
Paladox
f45608ea3e build: Update grunt-contrib-jshint from 0.12.0 to 1.0.0
Changelog at
https://github.com/gruntjs/grunt-contrib-jshint/blob/v1.0.0/CHANGELOG

This release includes a fix to the checker because sometimes it would
not show where the error was coming from.

Change-Id: Ia2e7d6520b760bdc80f7e24051ec578954aa0706
2016-02-22 22:15:28 +00:00
James D. Forrester
864cc26168 build: Bump grunt-contrib-jshint from 0.11.3 to 0.12.0
Taking the opportunity to modernise our .jshintrc file, I have made the
following changes there and adjusted the repo to pass:

* Replaced the deprecated `"es3": true` with `"esversion": 3`; nil change.
* Adjusted `"latedef": true` to `"latedef": "nofunc"`, a new setting for this
  option that lets us retain previous behaviour. One call needed to be adjusted
  for the update with this change; without it, several dozen were needed.
* Added `"futurehostile": true`, to make bumping `esversion` easier in future.

I have reviewed the rest of the options and chosen not to apply them:
* No need to over-ride the runtime option `maxerr`.
* No need to add the additional 'enforcing' options: `forin`, `nocomma`,
  `nonbsp`, `notypeof`, `predef`, `shadow`, `singleGroups`, `varstmt`.
* No need to add the additional 'relaxing' options, as ideally we should use
  none: `asi`, `boss`, `debug`, `elision`, `eqnull`, `evil`, `expr`,
  `lastsemic`, `loopfunc`, `moz`, `noyield`, `plusplus`, `proto`, `scripturl`,
  `supernew`, `validthis`, `withstmt`
* Definitely no need to add any of the deprecated coding style-related items:
  `camelcase`, `curly`, `immed`, `indent`, `laxcomma`, `maxlen`,
  `maxcomplexity`, `maxdepth`, `maxparams`, `maxstatements`, `newcap`,
  `noempty`, `quotmark`, `sub`

Note that we retain two deprecated options, `laxbreak` and `multistr` which are
set to be removed in the next major version of jshint but are as-yet required
for the repo so that it passes.

Change-Id: I2a780f655010f2231ab2ab93c40b34943828b4df
2016-02-06 18:41:45 -08:00
James D. Forrester
1ef92ba549 build: Bump devDependencies to latest
* grunt-contrib-copy: 0.8.1 -> 0.8.2
* grunt-jscs: 2.6.0 -> 2.7.0
* karma-qunit: 0.1.5 -> 0.1.9

Leaving grunt-contrib-jshint for a follow-up patch.

Avoiding upgrading qunitjs again due to incompatibility of recent versions.

Change-Id: Ie4d2f63c3ec247f1bad26ca5d954362210394618
2016-02-06 17:46:44 -08:00
Paladox
cbf8be4f42 build: Update jscs to latest
* grunt-jscs: 2.5.0 → 2.6.0

Change-Id: I4b1585c557b94927e593975e2e4696b88becd095
2016-01-08 16:37:21 +00:00
Paladox
ce0db4678c Update packages to do with karma
Packages updated are:

karma-chrome-launcher updated to 0.2.0

karma-firefox-launcher updated to 0.1.7

Change-Id: I542436bf8f0d782fc2af57a170faf936271b2bf9
2016-01-06 15:32:25 +00:00
Paladox
522e673e7e Update karma to 0.13.19
Bug: T122941
Change-Id: Iee84646b0f914bceb254ffc18d678d916c38eb20
2016-01-06 02:47:06 +00:00
Paladox
4798892b0d Update grunt-jsonlint to 1.0.7
This update now tells you on which line in which file the error happends.

Changelog is

1.0.7 Include file name and JSON source line number in error messages

1.0.6 CJSON support thanks to @fredghosn, unit tests

Change-Id: I38dc4a51416cfde0bb0434921d15f1c119abc01b
2015-12-24 14:12:42 +00:00
Paladox
9a1e6f8ab7 Update grunt-jscs to 2.5.0
2.5.0

Bump JSCS version to  2.7.0

2.4.0

Bump JSCS version to  2.6.0

2.3.0

Bump JSCS version to  2.5.0

2.2.0

* Update  jscs  dependency to  2.4.0
* Use new  Checker#execute  method, which allows to respect  maxErrors
* option when  fix  option is enabled
* fix  option is now directly passed to  Checker  class of  jscs
* Use new "idiomatic" preset instead of "jquery"
* Test in latest version of node in travis CI
* Update dev dependencies

https://github.com/jscs-dev/grunt-jscs/releases

Change-Id: I472a3c63fff814357799a3889b09bbb6a977474b
2015-12-09 21:45:44 +00:00
Paladox
40a85d0aa3 Update grunt-jsonlint to 1.0.5
This is a minor update there were packages updates in this version.

Change-Id: I43cced8c20153d06f764ebba90f64de0431e2d3f
2015-10-24 15:55:55 +01:00
James D. Forrester
b9b4cb5846 build: Upgrade grunt-banana-checker from v0.3.0 to v0.4.0
Take opportunity to drop no-longer-needed options.

Change-Id: I11250c12d2123d4729e12cd0dce07b24fc5008e5
2015-10-12 14:13:54 -04:00
jenkins-bot
808b957704 Merge "build: Bump various devDependencies to latest" 2015-09-28 23:38:36 +00:00
James D. Forrester
1e3264831d build: Set private flag in package.json (for now)
This fixes the warning about missing package description and license.
This matches what we do elsewhere for dev-only npm pipelines.

Change-Id: I29ee43482b90ea8875a5376409d656648e3c4b27
2015-09-28 11:52:19 -07:00
James D. Forrester
789e8b4676 build: Bump various devDependencies to latest
* grunt-contrib-copy: 0.8.0 -> 0.8.1
* grunt-karma: 0.11.0 -> 0.12.1
* karma: 0.12.36 -> 0.13.10
* karma-chrome-launcher: 0.1.12 -> 0.2.0
* karma-qunit: 0.1.4 -> 0.1.5

All already used in other repos.

Change-Id: If1548e9708aa9c8c97c9d2de14ffb4e8ada933fd
2015-09-25 10:47:06 +01:00
James D. Forrester
6a9bbcdca8 build: Upgrade grunt-banana-checker to v0.3.0
Disable disallowBlankTranslations, disallowDuplicateTranslations and
disallowUnusedTranslations for now as they fail so much.

Change-Id: I52e1555335a6e64b1e9db541ba726cf6ce8c7dd0
2015-09-07 16:42:21 -07:00
James D. Forrester
5ac63862df build: Bump grunt-jscs to 2.1.0 and make pass
Change-Id: I7c5a38ad16c471bb1443a5bde56dda4203fcfad5
2015-09-03 21:30:31 +00:00
paladox
e64b54a8b9 build: Update grunt-contrib-jshint to v0.11.3
Change-Id: I2170f77042d4f31914c684bf6bdc08321abe14db
2015-09-03 20:58:58 +00:00
Kunal Mehta
e410918e5f build: Updating development dependencies
* grunt-banana-checker: 0.2.1 → 0.2.2
* grunt-karma: 0.10.1 → 0.11.0
* karma: 0.12.31 → 0.12.36
* karma-chrome-launcher: 0.1.8 → 0.1.12
* karma-firefox-launcher: 0.1.4 → 0.1.6

Change-Id: Ic8bd8563c6f3313a7c8fc936c0753b071441c2b0
2015-06-07 22:41:11 -07:00
James D. Forrester
5f7c6c5805 build: Bump various devDependencies
grunt-contrib-jshint:  0.11.0 -> 0.11.2
	grunt-jscs:            1.5.0  -> 1.8.0
	karma-chrome-launcher: 0.1.7  -> 0.1.8
	qunitjs:               1.17.1 -> 1.18.0

Some trivial indentation and line-spacing changes to make this pass jscs.

Change-Id: Ieeb6dbcd3e6d9f6f0fb9865d356da462b9b0499b
2015-05-01 23:00:45 +00:00
James D. Forrester
6411ef8320 build: Update grunt-banana-checker to v0.2.1
Change-Id: I7b60b856d8cf21640c382647c6570e32091b5cde
2015-03-27 16:48:58 -07:00
Timo Tijhof
fa4ba8dbd7 build: Declare grunt-cli dependency
A long time ago, npm did not support using command line programs
within 'npm test' (not unless harcoding a path to node_modules/bin/...
within packages.json/scripts/test). But this has been long supported.

Declaring a (dev)dependency will provide its binaries to the
PATH used by the subshell 'npm test' creates internally.

Add grunt-cli so that developers don't have to manually install it.

Change-Id: I6a7fafa3c6e40d2407f07c514167ab9fc7661685
2015-03-19 01:08:57 +00:00
Timo Tijhof
3bbd27aa49 Rename JSDuck config to standard 'jsduck'
* Move configuration to /jsduck.json per standard. This way
  it can be run as plain '$ jsduck' without needing a maintenance
  script or custom Jenkins job. Similar to JSHint, JSCS, Grunt,
  and Gem etc.

* Move --processes=0 from maintenace script into config file.
  This should've been in the config file all along and serves as
  workaround for https://github.com/senchalabs/jsduck/issues/525.

* Use grunt-contrib-copy instead of a symlink for resources.
  For local development a symlink works fine, but for publishing
  from Jenkins to doc.wikimedia.org the /docs/js/ directory needs
  to be standalone. This was previously done with a manual post-build
  step that added an additional rsync, but this logic should be
  in the repository so that the doc entry point can be simplified
  and standardised to 'npm run-script doc' for all projects.

Change-Id: Iaaaac50ee78dd9ff8f24f1ef3a3685ad51cf33b2
2015-03-09 18:10:00 +00:00
James D. Forrester
8626b8823d build: Bump various devDependencies
grunt			0.4.2	-> 0.4.5
grunt-contrib-jshint	0.10.0	-> 0.11.0
grunt-jscs		0.8.1	-> 1.5.0
grunt-karma		0.9.0	-> 0.10.1
karma-firefox-launcher	0.1.3	-> 0.1.4
qunitjs			1.15.0	-> 1.17.1

Some minor fixes to pass new jscs rules; big ones postponed for now.

Change-Id: I5f2348c3cf96cf5aa20eeb9083300155b3920c5b
2015-02-10 00:52:15 +00:00
Alex Monk
1ac1512db8 Update karma to latest version
Per Timo, hopefully this should fix our issues with Chromium timing out
after 10 seconds?

Related patch: https://github.com/karma-runner/karma/commit/840ee5f7

Change-Id: Idbac350e2c612290f860ae740ef6ba242c9e0896
2015-01-30 21:46:20 +00:00
Timo Tijhof
57f5e6bf20 tests: Move npm-test to repo root
This is way overdue as it isn't experimental anymore.
Keeping it in a non-standard subdirectory makes it harder to
discover for people. And makes it harder to run from Jenkins
since this is already being ran on every commit.

Related to 70f3919.

Change-Id: Iaf5cf65616f82640145fbb6395c36129428602ca
2015-01-14 00:44:54 +00:00
Renamed from tests/frontend/package.json (Browse further)