From 4c155128c79b3c810f5413638af9c84083bde21b Mon Sep 17 00:00:00 2001 From: Yves Delley Date: Fri, 5 Sep 2014 17:41:56 +0200 Subject: removed all vendor-prefixes from reveal.css --- Gruntfile.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'Gruntfile.js') diff --git a/Gruntfile.js b/Gruntfile.js index 1baf966..06d8023 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -76,6 +76,14 @@ module.exports = function(grunt) { files: [ 'Gruntfile.js', 'js/reveal.js' ] }, + autoprefixer: { + dist: { + files: { + 'css/reveal.css': 'css/reveal.bare.css' + } + } + }, + connect: { server: { options: { @@ -104,6 +112,10 @@ module.exports = function(grunt) { theme: { files: [ 'css/theme/source/*.scss', 'css/theme/template/*.scss' ], tasks: 'themes' + }, + css: { + files: [ 'css/reveal.bare.css' ], + tasks: 'css' } } @@ -117,14 +129,19 @@ module.exports = function(grunt) { grunt.loadNpmTasks( 'grunt-contrib-watch' ); grunt.loadNpmTasks( 'grunt-contrib-sass' ); grunt.loadNpmTasks( 'grunt-contrib-connect' ); + grunt.loadNpmTasks( 'grunt-autoprefixer' ); grunt.loadNpmTasks( 'grunt-zip' ); // Default task - grunt.registerTask( 'default', [ 'jshint', 'cssmin', 'uglify', 'qunit' ] ); + grunt.registerTask( 'default', [ 'jshint', 'autoprefixer', 'cssmin', 'uglify', 'qunit' ] ); // Theme task grunt.registerTask( 'themes', [ 'sass' ] ); + // CSS task + grunt.registerTask( 'css', [ 'autoprefixer' ] ); + + // Package presentation to archive grunt.registerTask( 'package', [ 'default', 'zip' ] ); -- cgit v1.2.3 From 7fe762c2f3d53e1a7dc457f8269105208230f399 Mon Sep 17 00:00:00 2001 From: Yves Delley Date: Fri, 5 Sep 2014 17:43:02 +0200 Subject: - --- Gruntfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Gruntfile.js') diff --git a/Gruntfile.js b/Gruntfile.js index 06d8023..3a54333 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -133,13 +133,13 @@ module.exports = function(grunt) { grunt.loadNpmTasks( 'grunt-zip' ); // Default task - grunt.registerTask( 'default', [ 'jshint', 'autoprefixer', 'cssmin', 'uglify', 'qunit' ] ); + grunt.registerTask( 'default', [ 'jshint', 'css', 'uglify', 'qunit' ] ); // Theme task grunt.registerTask( 'themes', [ 'sass' ] ); // CSS task - grunt.registerTask( 'css', [ 'autoprefixer' ] ); + grunt.registerTask( 'css', [ 'autoprefixer', 'cssmin' ] ); // Package presentation to archive -- cgit v1.2.3 From 2bc36f2dfe04746d5a10c48531b38c64415d43aa Mon Sep 17 00:00:00 2001 From: Yves Delley Date: Fri, 12 Sep 2014 22:37:57 +0200 Subject: re-created unprefixed version of reveal.css automatically using autoprefixer, to facilitate merging of changes to it --- Gruntfile.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Gruntfile.js') diff --git a/Gruntfile.js b/Gruntfile.js index 3a54333..55585d4 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -81,6 +81,14 @@ module.exports = function(grunt) { files: { 'css/reveal.css': 'css/reveal.bare.css' } + }, + unprefix: { + files: { + 'css/reveal.clean.css': 'css/reveal.css' + }, + options: { + browsers: [] + } } }, @@ -139,7 +147,7 @@ module.exports = function(grunt) { grunt.registerTask( 'themes', [ 'sass' ] ); // CSS task - grunt.registerTask( 'css', [ 'autoprefixer', 'cssmin' ] ); + grunt.registerTask( 'css', [ 'autoprefixer:dist', 'cssmin' ] ); // Package presentation to archive -- cgit v1.2.3