@@ -6,8 +6,8 @@ const del = require('del');
66const imagemin = require ( 'gulp-imagemin' ) ;
77
88const pageSetting = require ( './src/_data/settings' )
9-
109const imageList = require ( './plugins/images-list' ) ;
10+
1111const baseDirPath = 'src/images/gallery' ;
1212
1313function getFolders ( dir ) {
@@ -64,25 +64,7 @@ gulp.task('prepare-img', gulp.series('minify-img', 'image-list'));
6464
6565gulp . task ( 'compile:11ty' , ( ) => {
6666 return gulp
67- . src ( './public/**/*' )
68- . pipe ( gulp . dest ( './dist/public' ) )
69- } )
70-
71- gulp . task ( 'compile:11ty-scripts' , ( ) => {
72- return gulp
73- . src ( './public/scripts/*' )
74- . pipe ( gulp . dest ( './dist/public/scripts' ) )
75- } )
76-
77- gulp . task ( 'compile:11ty-styles' , ( ) => {
78- return gulp
79- . src ( './public/styles/*' )
80- . pipe ( gulp . dest ( './dist/public/styles' ) )
81- } )
82-
83- gulp . task ( 'compile:11ty-html' , ( ) => {
84- return gulp
85- . src ( './public/index.html' )
67+ . src ( [ './public/**/*' , '!./public/images/**/*' ] )
8668 . pipe ( gulp . dest ( './dist/public' ) )
8769} )
8870
@@ -93,10 +75,6 @@ gulp.task('compile:server', (cb) => {
9375
9476} )
9577
96- gulp . task ( 'clean:images' , function ( cb ) {
97- return del ( './dist/public/images' , { force :true } ) ;
98- } ) ;
99-
10078gulp . task ( 'compile:images' , ( cb ) => {
10179 return gulp
10280 . src ( './src/images/**/*' )
@@ -121,5 +99,5 @@ gulp.task('copy-rest', (cb) => {
12199 cb ( )
122100} )
123101
124- gulp . task ( 'build' , gulp . series ( 'clean' , 'compile:11ty' , 'clean:images' , ' compile:server', 'compile:images' , 'copy-rest' ) ) ;
125- gulp . task ( 'update-build' , gulp . series ( 'compile:11ty-html' , 'compile:11ty-scripts' , 'compile:11ty-styles ', 'compile:server' , 'copy-rest' ) ) ;
102+ gulp . task ( 'build' , gulp . series ( 'clean' , 'compile:11ty' , 'compile:server' , 'compile:images' , 'copy-rest' ) ) ;
103+ gulp . task ( 'update-build' , gulp . series ( 'compile:11ty' , 'compile:server' , 'copy-rest' ) ) ;
0 commit comments