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/**
node_modules/
.sass-cache
*.zip

View File

@ -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'))

View File

@ -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",