Skip to content
This repository was archived by the owner on Dec 10, 2019. It is now read-only.

Commit fee9146

Browse files
committed
fix gulp task omission and copy image bug
1 parent 43be5d1 commit fee9146

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

gulpfile.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ gulp.task('pl-copy:js', function(){
1919

2020
// Images copy
2121
gulp.task('pl-copy:img', function(){
22-
return gulp.src('*',{cwd: path.resolve(paths().source.images)} )
22+
return gulp.src('**/*.*',{cwd: path.resolve(paths().source.images)} )
2323
.pipe(gulp.dest(path.resolve(paths().public.images)));
2424
});
2525

@@ -118,7 +118,7 @@ gulp.task('patternlab:loadstarterkit', function (done) {
118118
done();
119119
});
120120

121-
gulp.task('pl-build', gulp.series('pl-assets', build, function(done){
121+
gulp.task('patternlab:build', gulp.series('pl-assets', build, function(done){
122122
done();
123123
}));
124124

@@ -157,7 +157,7 @@ function watch() {
157157
gulp.watch(patternWatches).on('change', gulp.series(build, reload));
158158
}
159159

160-
gulp.task('pl-connect', gulp.series(function(done) {
160+
gulp.task('patternlab:connect', gulp.series(function(done) {
161161
browserSync.init({
162162
server: {
163163
baseDir: path.resolve(paths().public.root)
@@ -193,6 +193,6 @@ gulp.task('pl-connect', gulp.series(function(done) {
193193
/******************************************************
194194
* COMPOUND TASKS
195195
******************************************************/
196-
gulp.task('default', gulp.series('pl-build'));
197-
gulp.task('patternlab:watch', gulp.series('pl-build', watch));
198-
gulp.task('patternlab:serve', gulp.series('pl-build', 'pl-connect', watch));
196+
gulp.task('default', gulp.series('patternlab:build'));
197+
gulp.task('patternlab:watch', gulp.series('patternlab:build', watch));
198+
gulp.task('patternlab:serve', gulp.series('patternlab:build', 'patternlab:connect', watch));

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "edition-node-gulp",
33
"description": "The gulp wrapper around patternlab-node core, providing tasks to interact with the core library and move supporting frontend assets.",
4-
"version": "1.2.1",
4+
"version": "1.2.3",
55
"dependencies": {
66
"browser-sync": "^2.11.2",
77
"gulp": "gulpjs/gulp#4.0",

0 commit comments

Comments
 (0)