Packaging support

This commit is contained in:
Dejvino 2023-09-18 06:18:58 +02:00
parent 85b9dabfa4
commit b8dede72b8
3 changed files with 7 additions and 5 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@ log/*.log
tmp/** tmp/**
node_modules/ node_modules/
.sass-cache .sass-cache
*.zip

View File

@ -275,9 +275,9 @@ gulp.task('package', gulp.series(() =>
'./index.html', './index.html',
'./dist/**', './dist/**',
'./lib/**', './lib/**',
'./images/**', './slides/**',
'./plugin/**', './module/**',
'./**/*.md' './plugin/**'
], ],
{ base: './' } { base: './' }
) )
@ -300,7 +300,7 @@ gulp.task('serve', () => {
const slidesRoot = root.endsWith('/') ? root : root + '/' const slidesRoot = root.endsWith('/') ? root : root + '/'
gulp.watch([ gulp.watch([
slidesRoot + '**/*.html', slidesRoot + '**/*.html',
slidesRoot + '**/*.md', slidesRoot + './slides/*.md',
`!${slidesRoot}**/node_modules/**`, // ignore node_modules `!${slidesRoot}**/node_modules/**`, // ignore node_modules
], gulp.series('reload')) ], gulp.series('reload'))

View File

@ -10,7 +10,8 @@
"scripts": { "scripts": {
"test": "gulp test", "test": "gulp test",
"start": "gulp serve", "start": "gulp serve",
"build": "gulp build" "build": "gulp build",
"package": "gulp package"
}, },
"author": { "author": {
"name": "Hakim El Hattab", "name": "Hakim El Hattab",