1 /* global module:false */
2 module.exports = function(grunt) {
4 // Project configuration
6 pkg: grunt.file.readJSON('package.json'),
10 ' * reveal.js <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd, HH:MM") %>)\n' +
11 ' * http://lab.hakim.se/reveal-js\n' +
14 ' * Copyright (C) 2013 Hakim El Hattab, http://hakim.se\n' +
18 // Tests will be added soon
20 files: [ 'test/**/*.html' ]
25 banner: '<%= meta.banner %>\n'
29 dest: 'js/reveal.min.js'
36 'css/reveal.min.css': [ 'css/reveal.css' ]
44 'css/theme/default.css': 'css/theme/source/default.scss',
45 'css/theme/beige.css': 'css/theme/source/beige.scss',
46 'css/theme/night.css': 'css/theme/source/night.scss',
47 'css/theme/serif.css': 'css/theme/source/serif.scss',
48 'css/theme/simple.css': 'css/theme/source/simple.scss',
49 'css/theme/sky.css': 'css/theme/source/sky.scss',
50 'css/theme/moon.css': 'css/theme/source/moon.scss',
51 'css/theme/solarized.css': 'css/theme/source/solarized.scss'
75 files: [ 'Gruntfile.js', 'js/reveal.js' ]
88 'reveal-js-presentation.zip': [
100 files: [ 'Gruntfile.js', 'js/reveal.js', 'css/reveal.css' ],
104 files: [ 'css/theme/source/*.scss', 'css/theme/template/*.scss' ],
112 grunt.loadNpmTasks( 'grunt-contrib-jshint' );
113 grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
114 grunt.loadNpmTasks( 'grunt-contrib-uglify' );
115 grunt.loadNpmTasks( 'grunt-contrib-watch' );
116 grunt.loadNpmTasks( 'grunt-contrib-sass' );
117 grunt.loadNpmTasks( 'grunt-contrib-connect' );
118 grunt.loadNpmTasks( 'grunt-zip' );
121 grunt.registerTask( 'default', [ 'jshint', 'cssmin', 'uglify' ] );
124 grunt.registerTask( 'themes', [ 'sass' ] );
126 // Package presentation to archive
127 grunt.registerTask( 'package', [ 'default', 'zip' ] );
129 // Serve presentation locally
130 grunt.registerTask( 'serve', [ 'connect', 'watch' ] );