Fix running tasks on Windows (elastic/kibana-plugin-helpers#37)

* create windows cmd wrapper

* use windows cmd wrapper on browser tests

* be explicit about the mocha command location

* use windows cmd wrapper on server tests

* use windows cmd wrapper on build

default to using npm as well

Original commit: elastic/kibana-plugin-helpers@35f80a08ce
This commit is contained in:
Joe Fleming 2017-03-28 00:01:58 -07:00 committed by Spencer
parent 142d2dff2d
commit a773536c06
4 changed files with 15 additions and 4 deletions

View file

@ -0,0 +1,5 @@
var platform = require('os').platform();
module.exports = function winCmd(cmd) {
return /^win/.test(platform) ? cmd + '.cmd' : cmd;
};