vendor/reveal.js/Gruntfile.js in slide_hero-0.0.10 vs vendor/reveal.js/Gruntfile.js in slide_hero-0.0.11

- old
+ new

@@ -1,19 +1,21 @@ /* global module:false */ module.exports = function(grunt) { var port = grunt.option('port') || 8000; + var base = grunt.option('base') || '.'; + // Project configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), meta: { banner: '/*!\n' + ' * reveal.js <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd, HH:MM") %>)\n' + ' * http://lab.hakim.se/reveal-js\n' + ' * MIT licensed\n' + ' *\n' + - ' * Copyright (C) 2015 Hakim El Hattab, http://hakim.se\n' + + ' * Copyright (C) 2016 Hakim El Hattab, http://hakim.se\n' + ' */' }, qunit: { files: [ 'test/*.html' ] @@ -34,23 +36,19 @@ files: { 'css/reveal.css': 'css/reveal.scss', } }, themes: { - files: { - 'css/theme/black.css': 'css/theme/source/black.scss', - 'css/theme/white.css': 'css/theme/source/white.scss', - 'css/theme/league.css': 'css/theme/source/league.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', - 'css/theme/moon.css': 'css/theme/source/moon.scss', - 'css/theme/solarized.css': 'css/theme/source/solarized.scss', - 'css/theme/blood.css': 'css/theme/source/blood.scss' - } + files: [ + { + expand: true, + cwd: 'css/theme/source', + src: ['*.scss'], + dest: 'css/theme', + ext: '.css' + } + ] } }, autoprefixer: { dist: { @@ -93,13 +91,13 @@ connect: { server: { options: { port: port, - base: '.', - livereload: true, - open: true + base: base, + livereload: true, + open: true } } }, zip: { @@ -107,18 +105,16 @@ 'index.html', 'css/**', 'js/**', 'lib/**', 'images/**', - 'plugin/**' + 'plugin/**', + '**.md' ] }, watch: { - options: { - livereload: true - }, js: { files: [ 'Gruntfile.js', 'js/reveal.js' ], tasks: 'js' }, theme: { @@ -127,12 +123,18 @@ }, css: { files: [ 'css/reveal.scss' ], tasks: 'css-core' }, - html: { - files: [ 'index.html'] - } + html: { + files: [ '*.html'] + }, + markdown: { + files: [ '*.md' ] + }, + options: { + livereload: true + } } }); // Dependencies