Packaging support
This commit is contained in:
parent
85b9dabfa4
commit
b8dede72b8
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,3 +9,4 @@ log/*.log
|
||||
tmp/**
|
||||
node_modules/
|
||||
.sass-cache
|
||||
*.zip
|
@ -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'))
|
||||
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user