Jhernandez has uploaded a new change for review.

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

Change subject: Tools: Add lint task for grunt
......................................................................

Tools: Add lint task for grunt

Try it with: (pretty useful for development)
grunt watch:lint

Change-Id: Ia0b20f7567df8c116ef5d0d880aedf992ffb19ec
---
M Gruntfile.js
1 file changed, 6 insertions(+), 1 deletion(-)


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

diff --git a/Gruntfile.js b/Gruntfile.js
index ca8a850..597da8a 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -40,6 +40,10 @@
                        }
                },
                watch: {
+                       lint: {
+                               files: [ '<%= files.js %>', '<%= files.jsTests 
%>' ],
+                               tasks: [ 'lint' ]
+                       },
                        scripts: {
                                files: [ '<%= files.js %>', '<%= files.jsTests 
%>' ],
                                tasks: [ 'test' ]
@@ -53,8 +57,9 @@
                }
        } );
 
+       grunt.registerTask( 'lint', [ 'jshint', 'jscs' ] );
        // Jenkins automatically runs grunt test for us
-       grunt.registerTask( 'test', [ 'jshint', 'jscs', 'qunit' ] );
+       grunt.registerTask( 'test', [ 'lint', 'qunit' ] );
        grunt.registerTask( 'default', [ 'test' ] );
 
 };

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia0b20f7567df8c116ef5d0d880aedf992ffb19ec
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
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