From b8dede72b83849721209a3ef117897b0070e9884 Mon Sep 17 00:00:00 2001 From: Dejvino Date: Mon, 18 Sep 2023 06:18:58 +0200 Subject: [PATCH] Packaging support --- .gitignore | 1 + gulpfile.js | 8 ++++---- package.json | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 24e26ee..6c51b81 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ log/*.log tmp/** node_modules/ .sass-cache +*.zip \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index 988e4bf..155b36f 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -275,9 +275,9 @@ gulp.task('package', gulp.series(() => './index.html', './dist/**', './lib/**', - './images/**', - './plugin/**', - './**/*.md' + './slides/**', + './module/**', + './plugin/**' ], { base: './' } ) @@ -300,7 +300,7 @@ gulp.task('serve', () => { const slidesRoot = root.endsWith('/') ? root : root + '/' gulp.watch([ slidesRoot + '**/*.html', - slidesRoot + '**/*.md', + slidesRoot + './slides/*.md', `!${slidesRoot}**/node_modules/**`, // ignore node_modules ], gulp.series('reload')) diff --git a/package.json b/package.json index c97895e..40d24cb 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "scripts": { "test": "gulp test", "start": "gulp serve", - "build": "gulp build" + "build": "gulp build", + "package": "gulp package" }, "author": { "name": "Hakim El Hattab",