Jdlrobson has uploaded a new change for review.

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

Change subject: Tools: Use gruntfile to generate pngs
......................................................................

Tools: Use gruntfile to generate pngs

Change-Id: I07fa0cf0325bceeaffe89d02ccb63bebded7f572
---
M Gruntfile.js
M package.json
2 files changed, 8 insertions(+), 1 deletion(-)


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

diff --git a/Gruntfile.js b/Gruntfile.js
index c46c67f..d0d6c16 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -13,6 +13,7 @@
        grunt.loadNpmTasks( 'grunt-contrib-qunit' );
        grunt.loadNpmTasks( 'grunt-contrib-watch' );
        grunt.loadNpmTasks( 'grunt-notify' );
+       grunt.loadNpmTasks( 'grunt-svg2png' );
 
        grunt.initConfig( {
                URL: process.env.URL || 'http://127.0.0.1:8080/w/index.php/',
@@ -20,6 +21,11 @@
                files: {
                        js: 'javascripts/**/*.js',
                        jsTests: 'tests/qunit/**/*.js'
+               },
+               svg2png: {
+                       dist: {
+                               src: 'less/images/icons/*.svg'
+                       }
                },
                jshint: {
                        options: {
@@ -62,5 +68,5 @@
        // Jenkins automatically runs grunt test for us
        grunt.registerTask( 'test', [ 'lint', 'qunit' ] );
        grunt.registerTask( 'default', [ 'test' ] );
-
+       grunt.registerTask( 'build-icons', [ 'svg2png' ] );
 };
diff --git a/package.json b/package.json
index 758b36d..ed1bf35 100644
--- a/package.json
+++ b/package.json
@@ -12,6 +12,7 @@
                "svgo": ">=0.4.4"
        },
        "devDependencies": {
+               "grunt-svg2png": "0.2.5",
                "grunt-contrib-jshint": "0.10.0",
                "grunt-jscs": "0.8.1",
                "js-beautify": "^1.5.4",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I07fa0cf0325bceeaffe89d02ccb63bebded7f572
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>

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

Reply via email to