Skip to content

Commit

Permalink
add grunt sass theme task
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Mar 4, 2013
1 parent 2abf667 commit 6a0ce3c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 27 deletions.
27 changes: 25 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@ module.exports = function(grunt) {
}
},

sass: {
main: {
files: {
'css/theme/default.css': 'css/theme/source/default.scss',
'css/theme/beige.css': 'css/theme/source/beige.scss',
'css/theme/night.css': 'css/theme/source/night.scss',
'css/theme/serif.css': 'css/theme/source/serif.scss',
'css/theme/simple.css': 'css/theme/source/simple.scss',
'css/theme/sky.css': 'css/theme/source/sky.scss'
}
},
},

jshint: {
options: {
curly: false,
Expand All @@ -64,8 +77,14 @@ module.exports = function(grunt) {
},

watch: {
files: [ 'Gruntfile.js', 'js/reveal.js', 'css/reveal.css' ],
tasks: 'default'
main: {
files: [ 'Gruntfile.js', 'js/reveal.js', 'css/reveal.css' ],
tasks: 'default'
},
theme: {
files: [ 'css/theme/source/*.scss', 'css/theme/template/*.scss' ],
tasks: 'themes'
}
}

});
Expand All @@ -75,8 +94,12 @@ module.exports = function(grunt) {
grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
grunt.loadNpmTasks( 'grunt-contrib-uglify' );
grunt.loadNpmTasks( 'grunt-contrib-watch' );
grunt.loadNpmTasks( 'grunt-contrib-sass' );

// Default task
grunt.registerTask( 'default', [ 'jshint', 'cssmin', 'uglify' ] );

// Theme task
grunt.registerTask( 'themes', [ 'sass' ] );

};
25 changes: 0 additions & 25 deletions css/theme/README.md

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"grunt-contrib-cssmin": "~0.4.1",
"grunt-contrib-uglify": "~0.1.1",
"grunt-contrib-watch": "~0.2.0",
"grunt-contrib-sass": "~0.2.2",
"grunt": "~0.4.0"
}
}

0 comments on commit 6a0ce3c

Please sign in to comment.