Skip to content
This repository has been archived by the owner on Feb 7, 2021. It is now read-only.

Commit

Permalink
Agregadas las tareas 'watch' y 'watch:child'
Browse files Browse the repository at this point in the history
  • Loading branch information
rogertm committed May 21, 2019
1 parent 84d41aa commit 6d6c467
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions gulpfile.js
Expand Up @@ -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.