diff --git a/Gruntfile.js b/Gruntfile.js index 277681f8c79645162a82d7f05813bc6638e1a4ea..94012f7bd949e1363cf8938759364743a4da6ac1 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -13,6 +13,7 @@ module.exports = grunt => { const SLIDE_LEVEL = 0 + process.env.SLIDE_LEVEL || 2; const TOC_DEPTH = 0 + process.env.TOC_DEPTH || SLIDE_LEVEL; + const sourcesGlob = ["**/*.{md,jpg,svg,png}", "!**/.*"]; const revealJsSources = ["js/**/*.js", "css/**/*.css", "lib/**", "plugin/**"]; grunt.initConfig({ @@ -33,9 +34,10 @@ module.exports = grunt => { files: ["Gruntfile.js"] }, presentations: { - files: "src/**/*", + files: sourcesGlob, tasks: [], options: { + cwd: "src/.", debounceDelay: 1000, event: ["add", "change"], spawn: false, @@ -88,7 +90,7 @@ module.exports = grunt => { sources: { expand: true, cwd: "src/", - src: ["**/*", "!**/.*", "!**/*.md"], + src: [...sourcesGlob, "!**/*.md"], dest: "dist/" } },