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