Jhernandez has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/391814 )

Change subject: Chore: Run linter and tests on file change on watch
......................................................................

Chore: Run linter and tests on file change on watch

Before lint and mocha would only be run when starting npm run watch,
with this they will be run with every source file change.

Change-Id: Iabbbd362d4d5848433cb50e942872a41a7fcc291
---
M package.json
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/marvin refs/changes/14/391814/1

diff --git a/package.json b/package.json
index 476df30..8dee5be 100644
--- a/package.json
+++ b/package.json
@@ -6,10 +6,11 @@
   "scripts": {
     "--- PRIMARY ---": "# Frequent user scripts.",
     "start": "run-p -s 'build:server -- -d' start:\\*",
-    "watch": "run-p -s 'build:server -- -dw' start:\\* lint mocha",
+    "watch": "run-p -s 'build:server -- -dw' start:\\* test:watch",
     "build": "NODE_ENV=production run-p -s build:\\*",
     "format": "npm run -s lint -- --fix",
     "lint": "eslint --cache --max-warnings 0 
--report-unused-disable-directives --ext ts,tsx,js,json .",
+    "test:watch": "nodemon ${VERBOSE:--q} -e js,json,ts,tsx,css --watch src/ 
--exec 'run-p -s lint mocha'",
     "test": "run-p -s lint build mocha",
     "--- SECONDARY ---": "# Useful but rarely used scripts.",
     "mocha": "TS_NODE_PROJECT=src/server mocha '{src,test}/**/*.test.{ts,js}'",

-- 
To view, visit https://gerrit.wikimedia.org/r/391814
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iabbbd362d4d5848433cb50e942872a41a7fcc291
Gerrit-PatchSet: 1
Gerrit-Project: marvin
Gerrit-Branch: master
Gerrit-Owner: Jhernandez <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to