Convert makelogs and mocha npm scripts (#11665)

* [scripts] convert `npm run makelogs` to script

* [scripts] convert `npm run mocha` to script

* [scripts] add warning to `test:ui:runner` npm script

* [script] fix location of scripts in warnings
This commit is contained in:
Spencer 2017-05-09 10:53:10 -07:00 committed by GitHub
parent 9509d9e89b
commit d126e7c5f4
3 changed files with 5 additions and 3 deletions

View file

@ -45,6 +45,7 @@
"test:browser": "grunt test:browser",
"test:ui": "grunt test:ui",
"test:ui:server": "grunt test:ui:server",
"test:ui:runner": "echo 'use `node scripts/functional_test_runner`' && false",
"test:server": "grunt test:server",
"test:coverage": "grunt test:coverage",
"test:visualRegression": "grunt test:visualRegression",
@ -58,9 +59,8 @@
"elasticsearchWithPlugins": "grunt esvm:withPlugins:keepalive",
"lint": "grunt eslint:source",
"lintroller": "grunt eslint:fixSource",
"makelogs": "makelogs",
"mocha": "mocha",
"mocha:debug": "mocha --debug-brk",
"makelogs": "echo 'use `node scripts/makelogs`' && false",
"mocha": "echo 'use `node scripts/mocha`' && false",
"sterilize": "grunt sterilize",
"uiFramework:start": "grunt uiFramework:start",
"uiFramework:build": "grunt uiFramework:build"

1
scripts/makelogs.js Normal file
View file

@ -0,0 +1 @@
require('makelogs');

1
scripts/mocha.js Normal file
View file

@ -0,0 +1 @@
require('mocha/bin/mocha');