You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zeppelin.apache.org by co...@apache.org on 2015/11/17 09:21:30 UTC

incubator-zeppelin git commit: ZEPPELIN-430 - Remove deprecated grunt-autoprefixer for grunt-postcss

Repository: incubator-zeppelin
Updated Branches:
  refs/heads/master ee1d70494 -> bd5cd8567


ZEPPELIN-430 - Remove deprecated grunt-autoprefixer for grunt-postcss

Making a switch off grunt plugin since grunt-autoprefixer is deprecated, and its version of autoprefixer is old.

Author: Damien CORNEAU <co...@gmail.com>

Closes #438 from corneadoug/modify/switchToPostCSS and squashes the following commits:

c343530 [Damien CORNEAU] Remove deprecated grunt-autoprefixer for grunt-postcss


Project: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/commit/bd5cd856
Tree: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/tree/bd5cd856
Diff: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/diff/bd5cd856

Branch: refs/heads/master
Commit: bd5cd85673793ee7e67b33f90c4f3cc1eaf21dc7
Parents: ee1d704
Author: Damien CORNEAU <co...@gmail.com>
Authored: Mon Nov 16 16:54:20 2015 +0900
Committer: Damien CORNEAU <co...@gmail.com>
Committed: Tue Nov 17 17:20:56 2015 +0900

----------------------------------------------------------------------
 zeppelin-web/Gruntfile.js | 17 ++++++++++-------
 zeppelin-web/package.json |  3 ++-
 2 files changed, 12 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/blob/bd5cd856/zeppelin-web/Gruntfile.js
----------------------------------------------------------------------
diff --git a/zeppelin-web/Gruntfile.js b/zeppelin-web/Gruntfile.js
index e7b857d..13612ea 100644
--- a/zeppelin-web/Gruntfile.js
+++ b/zeppelin-web/Gruntfile.js
@@ -83,7 +83,7 @@ module.exports = function (grunt) {
           '<%= yeoman.app %>/assets/styles/**/*.css',
           '<%= yeoman.app %>/fonts/**/*.css'
         ],
-        tasks: ['newer:copy:styles', 'autoprefixer']
+        tasks: ['newer:copy:styles', 'postcss']
       },
       gruntfile: {
         files: ['Gruntfile.js']
@@ -186,9 +186,12 @@ module.exports = function (grunt) {
     },
 
     // Add vendor prefixed styles
-    autoprefixer: {
+    postcss: {
       options: {
-        browsers: ['last 1 version']
+        map: true,
+        processors: [
+          require('autoprefixer')({browsers: ['last 2 versions']})
+        ]
       },
       dist: {
         files: [{
@@ -410,7 +413,7 @@ module.exports = function (grunt) {
       'clean:server',
       'wiredep',
       'concurrent:server',
-      'autoprefixer',
+      'postcss',
       'connect:livereload',
       'watch'
     ]);
@@ -425,7 +428,7 @@ module.exports = function (grunt) {
     'clean:server',
     'wiredep',
     'concurrent:test',
-    'autoprefixer',
+    'postcss',
     'connect:test',
     'karma'
   ]);
@@ -436,7 +439,7 @@ module.exports = function (grunt) {
     'wiredep',
     'useminPrepare',
     'concurrent:dist',
-    'autoprefixer',
+    'postcss',
     'concat',
     'ngAnnotate',
     'copy:dist',
@@ -451,7 +454,7 @@ module.exports = function (grunt) {
     'wiredep',
     'useminPrepare',
     'concurrent:dist',
-    'autoprefixer',
+    'postcss',
     'concat',
     'ngAnnotate',
     'copy:dist',

http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/blob/bd5cd856/zeppelin-web/package.json
----------------------------------------------------------------------
diff --git a/zeppelin-web/package.json b/zeppelin-web/package.json
index 4a5eea3..62d19b4 100644
--- a/zeppelin-web/package.json
+++ b/zeppelin-web/package.json
@@ -6,9 +6,9 @@
     "grunt-dom-munger": "^3.4.0"
   },
   "devDependencies": {
+    "autoprefixer": "^6.1.0",
     "bower": "",
     "grunt": "^0.4.1",
-    "grunt-autoprefixer": "^0.7.3",
     "grunt-concurrent": "^0.5.0",
     "grunt-contrib-clean": "^0.5.0",
     "grunt-contrib-concat": "^0.4.0",
@@ -22,6 +22,7 @@
     "grunt-filerev": "^0.2.1",
     "grunt-newer": "^0.7.0",
     "grunt-ng-annotate": "^0.10.0",
+    "grunt-postcss": "^0.7.1",
     "grunt-svgmin": "^0.4.0",
     "grunt-usemin": "^2.1.1",
     "grunt-wiredep": "~2.0.0",