Krinkle has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/201939

Change subject: build: Add 'doc' entry point and move coverage to "/coverage"
......................................................................

build: Add 'doc' entry point and move coverage to "/coverage"

To match oojs-core and oojs-ui output directory. And makes easy
to use the standard Jenkins job template for publishing coverage
reports to https://integration.wikimedia.org/cover/

As well as the standard Jenkins job template for generating
documentation (npm run-script doc).

Change-Id: Ic6cdc9ac1b266a64dcb1522ac36132c5ef844d3c
---
M Gruntfile.js
M jsduck.json
M package.json
3 files changed, 6 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor 
refs/changes/39/201939/1

diff --git a/Gruntfile.js b/Gruntfile.js
index b098087..5e60525 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -205,8 +205,8 @@
                                },
                                reporters: [ 'dots', 'coverage' ],
                                coverageReporter: { reporters: [
-                                       { type: 'html', dir: 
'test-coverage/visualeditor' },
-                                       { type: 'text-summary', dir: 
'test-coverage/visualeditor' }
+                                       { type: 'html', dir: 'coverage/' },
+                                       { type: 'text-summary', dir: 
'coverage/' }
                                ] }
                        },
                        others: {
diff --git a/jsduck.json b/jsduck.json
index 37b42a6..c928bd9 100644
--- a/jsduck.json
+++ b/jsduck.json
@@ -1,5 +1,6 @@
 {
-       "--title": "VisualEditor Code Documentation",
+       "--title": "VisualEditor - Documentation",
+       "--output": "docs",
        "--categories": ".jsduck/categories.json",
        "--eg-iframe": ".jsduck/eg-iframe.html",
        "--tags": ".jsduck/CustomTags.rb",
@@ -8,7 +9,6 @@
        "--processes": "0",
        "--warnings-exit-nonzero": true,
        "--external": 
"HTMLDocument,Window,Node,Set,Range,Selection,ClientRect,File,Blob,DataTransfer,DataTransferItem,KeyboardEvent,MouseEvent",
-       "--output": "docs",
        "--": [
                ".jsduck/external.js",
                "lib/oojs",
diff --git a/package.json b/package.json
index c9d926f..0c38c6a 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,8 @@
   "description": "Stand-alone contentEditable-based rich Web editor.",
   "scripts": {
     "test": "grunt test",
-    "prepublish": "grunt build"
+    "prepublish": "grunt build",
+    "doc": "jsduck"
   },
   "homepage": "https://www.mediawiki.org/wiki/VisualEditor";,
   "repository": {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic6cdc9ac1b266a64dcb1522ac36132c5ef844d3c
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Krinkle <[email protected]>

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

Reply via email to