Commit 7a9851cf authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Ne traite que les fichiers md, jpg, svg et png de src.

parent 5075cd2e
......@@ -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/"
}
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment