Bmansurov has uploaded a new change for review.

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

Change subject: Run jsduck through grunt
......................................................................

Run jsduck through grunt

Bug: 72718
Change-Id: I2ebcf50680e6d4a7e37a4dfb4247279385c0bcd9
---
M Gruntfile.js
M package.json
2 files changed, 22 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/51/174851/1

diff --git a/Gruntfile.js b/Gruntfile.js
index c167221..b03c825 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -14,6 +14,7 @@
        grunt.loadNpmTasks( 'grunt-contrib-watch' );
        grunt.loadNpmTasks( 'grunt-notify' );
        grunt.loadNpmTasks( 'grunt-svg2png' );
+       grunt.loadNpmTasks( 'grunt-jsduck' );
 
        grunt.initConfig( {
                URL: process.env.URL || 'http://127.0.0.1:8080/w/index.php/',
@@ -82,6 +83,26 @@
                                        reload: true
                                }
                        }
+               },
+               jsduck: {
+                       main: {
+                               src: [ '<%= files.js %>', '!<%= 
files.jsExternals %>' ],
+                               dest: 'docs/js',
+                               options: {
+                                       'builtin-classes': true,
+                                       'external': [
+                                               'Hogan.Template',
+                                               'HandleBars.Template',
+                                               'jQuery.Deferred',
+                                               'jQuery.Event',
+                                               'jQuery.Object',
+                                               'mw.user',
+                                               'OO.EventEmitter'
+                                       ],
+                                       'ignore-global': true,
+                                       'warnings': [ '-no_doc', '-dup_member', 
'-link_ambiguous' ]
+                               }
+                       }
                }
        } );
 
diff --git a/package.json b/package.json
index 2a42f58..8e59ce7 100644
--- a/package.json
+++ b/package.json
@@ -18,6 +18,7 @@
                "grunt-svg2png": "0.2.5",
                "grunt-contrib-jshint": "0.10.0",
                "grunt-jscs": "0.8.1",
+               "grunt-jsduck": "^1.0.1",
                "js-beautify": "^1.5.4",
                "grunt-notify": "^0.3.1",
                "grunt-contrib-watch": "0.6.1",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2ebcf50680e6d4a7e37a4dfb4247279385c0bcd9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Bmansurov <bmansu...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to