Yurik has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/383774 )

Change subject: Moved CSS to LESS, added grunt support
......................................................................

Moved CSS to LESS, added grunt support

Change-Id: Ie4720ac9f212ced0d36ce54bc1a6c7ab294daada
---
M Gruntfile.js
M package.json
R style.less
3 files changed, 10 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikidata/query/gui 
refs/changes/74/383774/1

diff --git a/Gruntfile.js b/Gruntfile.js
index 06983bc..d6b1374 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -28,9 +28,16 @@
                                'wikibase/tests/*.html'
                        ]
                },
+               less: {
+                       all: {
+                               files: {
+                                       'style.css': 'style.less'
+                               }
+                       }
+               },
                stylelint: {
                        all: [
-                               'style.css'
+                               'style.less'
                        ]
                },
                banana: {
@@ -227,7 +234,7 @@
                'clean', 'create_build'
        ] );
        grunt.registerTask( 'create_build', [
-               'auto_install', 'test', 'copy', 'useminPrepare', 'concat', 
'cssmin', 'uglify', 'filerev', 'usemin', 'htmlmin', 'merge-i18n'
+               'auto_install', 'test', 'less', 'copy', 'useminPrepare', 
'concat', 'cssmin', 'uglify', 'filerev', 'usemin', 'htmlmin', 'merge-i18n'
        ] );
        grunt.registerTask( 'deploy', [
                'clean', 'shell:updateRepo', 'shell:cloneDeploy', 
'clean:deploy', 'create_build', 'shell:commitDeploy', 'configDeploy', 
'shell:review'
diff --git a/package.json b/package.json
index a196ec4..e2f2613 100644
--- a/package.json
+++ b/package.json
@@ -55,6 +55,7 @@
     "grunt-contrib-cssmin": "^2.2.0",
     "grunt-contrib-htmlmin": "^2.4.0",
     "grunt-contrib-jshint": "^1.1.0",
+    "grunt-contrib-less": "^1.4.1",
     "grunt-contrib-qunit": "^2.0.0",
     "grunt-contrib-uglify": "^3.0.1",
     "grunt-filerev": "^2.3.1",
diff --git a/style.css b/style.less
similarity index 100%
rename from style.css
rename to style.less

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie4720ac9f212ced0d36ce54bc1a6c7ab294daada
Gerrit-PatchSet: 1
Gerrit-Project: wikidata/query/gui
Gerrit-Branch: master
Gerrit-Owner: Yurik <yuriastrak...@gmail.com>

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

Reply via email to