reveal.css is now scss, merge autoprexier #1007

This commit is contained in:
Hakim El Hattab 2014-10-06 09:41:29 +02:00
commit cc02564b2f
4 changed files with 2228 additions and 1428 deletions

View File

@ -29,17 +29,10 @@ module.exports = function(grunt) {
} }
}, },
cssmin: {
compress: {
files: {
'css/reveal.min.css': [ 'css/reveal.css' ]
}
}
},
sass: { sass: {
dist: { dist: {
files: { files: {
'css/reveal.css': 'css/reveal.scss',
'css/theme/default.css': 'css/theme/source/default.scss', 'css/theme/default.css': 'css/theme/source/default.scss',
'css/theme/black.css': 'css/theme/source/black.scss', 'css/theme/black.css': 'css/theme/source/black.scss',
'css/theme/beige.css': 'css/theme/source/beige.scss', 'css/theme/beige.css': 'css/theme/source/beige.scss',
@ -54,6 +47,20 @@ module.exports = function(grunt) {
} }
}, },
autoprefixer: {
dist: {
src: 'css/reveal.css'
}
},
cssmin: {
compress: {
files: {
'css/reveal.min.css': [ 'css/reveal.css' ]
}
}
},
jshint: { jshint: {
options: { options: {
curly: false, curly: false,
@ -113,6 +120,10 @@ module.exports = function(grunt) {
files: [ 'css/theme/source/*.scss', 'css/theme/template/*.scss' ], files: [ 'css/theme/source/*.scss', 'css/theme/template/*.scss' ],
tasks: 'themes' tasks: 'themes'
}, },
css: {
files: [ 'css/reveal.css' ],
tasks: 'css'
},
html: { html: {
files: [ 'index.html'] files: [ 'index.html']
} }
@ -128,14 +139,18 @@ module.exports = function(grunt) {
grunt.loadNpmTasks( 'grunt-contrib-watch' ); grunt.loadNpmTasks( 'grunt-contrib-watch' );
grunt.loadNpmTasks( 'grunt-sass' ); grunt.loadNpmTasks( 'grunt-sass' );
grunt.loadNpmTasks( 'grunt-contrib-connect' ); grunt.loadNpmTasks( 'grunt-contrib-connect' );
grunt.loadNpmTasks( 'grunt-autoprefixer' );
grunt.loadNpmTasks( 'grunt-zip' ); grunt.loadNpmTasks( 'grunt-zip' );
// Default task // Default task
grunt.registerTask( 'default', [ 'jshint', 'cssmin', 'uglify', 'qunit' ] ); grunt.registerTask( 'default', [ 'jshint', 'css', 'uglify', 'qunit' ] );
// Theme task // Theme task
grunt.registerTask( 'themes', [ 'sass' ] ); grunt.registerTask( 'themes', [ 'sass' ] );
// CSS task
grunt.registerTask( 'css', [ 'sass', 'autoprefixer', 'cssmin' ] );
// Package presentation to archive // Package presentation to archive
grunt.registerTask( 'package', [ 'default', 'zip' ] ); grunt.registerTask( 'package', [ 'default', 'zip' ] );

File diff suppressed because it is too large Load Diff

1349
css/reveal.scss Normal file

File diff suppressed because it is too large Load Diff

View File

@ -34,6 +34,7 @@
"grunt-contrib-watch": "~0.5.3", "grunt-contrib-watch": "~0.5.3",
"grunt-sass": "~0.14.0", "grunt-sass": "~0.14.0",
"grunt-contrib-connect": "~0.5.0", "grunt-contrib-connect": "~0.5.0",
"grunt-autoprefixer": "~1.0.1",
"grunt-zip": "~0.7.0", "grunt-zip": "~0.7.0",
"grunt": "~0.4.0", "grunt": "~0.4.0",
"node-sass": "~0.9.3" "node-sass": "~0.9.3"