build: Add 'npm run qunit' command
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 22 Nov 2017 18:48:27 +0000 (10:48 -0800)
committerTimo Tijhof <krinklemail@gmail.com>
Wed, 22 Nov 2017 18:48:27 +0000 (10:48 -0800)
commitb043cec2d766ddbb12e93cc3ff380b65c6e989f2
tree07e8b2520557987fee6b5367f1985d022ffd278a
parent4c96ff5203daefc5c87cb2aec6f9ba1acac3b6cb
build: Add 'npm run qunit' command

The running of 'grunt qunit' is unconvenient due to it only working
if the user has grunt-cli installed globally, which should not be
needed because it is already installed in the local directory.

It could be worked around by instructing users to use
`./node_modules/.bin/grunt qunit`, but it would be much simpler
to instruct them to use `npm run qunit` instead.

Unlike 'composer', 'npm' does not come by default with a command
like 'composer exec' that one could pass a command directly
without needing to register it. This is fixed in more recent
versions through 'npx -c', but that's a bit too new to require
in the manual, so adding it as a run-script instead.

Change-Id: I2812b13dbed50612b1626a617ba65f92e212f01a
package.json