jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/383047 )

Change subject: Add test web server to simplify debugging
......................................................................


Add test web server to simplify debugging

Allows "npm start" to locally debug the app
by starting a local server and opening the browser

Change-Id: Iad1dd0ceac44b2c7e64ca60a12c872b17985b673
---
M README.md
M package.json
2 files changed, 9 insertions(+), 0 deletions(-)

Approvals:
  Jonas Kress (WMDE): Looks good to me, approved
  jenkins-bot: Verified



diff --git a/README.md b/README.md
index 36d52f6..138e750 100644
--- a/README.md
+++ b/README.md
@@ -29,6 +29,13 @@
 $ npm test
 ```
 
+## Debug
+Start a test server for local debugging. Do not use it in production.
+
+```bash
+$ npm start
+```
+
 ## Build
 Create a build with bundled and minified files.
 
diff --git a/package.json b/package.json
index ae6b46a..a196ec4 100644
--- a/package.json
+++ b/package.json
@@ -3,6 +3,7 @@
   "license": "GPL-2.0+",
   "version": "0.1.4",
   "scripts": {
+    "start": "http-server -o",
     "test": "grunt test",
     "build": "grunt build",
     "deploy": "grunt deploy"
@@ -63,6 +64,7 @@
     "grunt-shell": "^2.1.0",
     "grunt-stylelint": "^0.8.0",
     "grunt-usemin": "^3.1.1",
+    "http-server": "^0.10.0",
     "karma-qunit": "^1.2.1",
     "load-grunt-tasks": "^3.5.2",
     "qunitjs": "1.23.1",

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Iad1dd0ceac44b2c7e64ca60a12c872b17985b673
Gerrit-PatchSet: 2
Gerrit-Project: wikidata/query/gui
Gerrit-Branch: master
Gerrit-Owner: Yurik <[email protected]>
Gerrit-Reviewer: Jonas Kress (WMDE) <[email protected]>
Gerrit-Reviewer: Lucas Werkmeister (WMDE) <[email protected]>
Gerrit-Reviewer: Smalyshev <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to