Skip to content
Permalink
Browse files

Agregadas las tareas 'watch' y 'watch:child'

  • Loading branch information...
rogertm committed May 21, 2019
1 parent 84d41aa commit 6d6c467543aa0cb853d519df4a8d903147115a8b
Showing with 22 additions and 0 deletions.
  1. +22 −0 gulpfile.js
@@ -132,3 +132,25 @@ function childScss(){
}

exports.child = series( childClean, childJs, childScss );

/**
* Watch files for changes
* Run 'gulp watch' to deploy file changes
*
* @since Twenty'em 1.4
*/
task('watch', () => {
watch(jsSrc + '*.js', series( js ));
watch(scssSrc +'*.scss', series( scss ));
})

/**
* Watch files for changes
* Run 'gulp watch:child' to deploy file changes in a Child Theme
*
* @since Twenty'em 1.4
*/
task('watch:child', () => {
watch(childJsSrc + '*.js', series( childJs ));
watch(childScssSrc +'*.scss', series( childScss ));
})

0 comments on commit 6d6c467

Please sign in to comment.
You can’t perform that action at this time.