Browse Source

Packaging support

main
Dejvino 7 months ago
parent
commit
b8dede72b8
3 changed files with 7 additions and 5 deletions
  1. +1
    -0
      .gitignore
  2. +4
    -4
      gulpfile.js
  3. +2
    -1
      package.json

+ 1
- 0
.gitignore View File

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

+ 4
- 4
gulpfile.js 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'))



+ 2
- 1
package.json 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",


Loading…
Cancel
Save