Gulp Refresh Wordpress PHP files -


In my WordPress environment I have a basic puppy. JS Setup is everything I want to do in addition to how I am reloaded .php files changed works when when the work of GLP is over, this work is being loaded twice, which means That this will start the work and again the task will be gone again. The files I was seeing in the fiction are located in the root directory as well as in the library directory. Apart from this, there is a way to see the chatter is the only change files. I have set it up like this:

  // PHP Task gulp.task (â "??? phpâ ????, function () {clock {{glob: ['php' , 'Library / .php']}) .pipe (plugins.livereload (server)) .pipe (plugins.notify ({message: a 'ppp work done'}})}} // clock gulp. Listen to the task (â "??? watchâ ????, function () {// port 35729   

====================================

Here is the result of a single save.

  [gulp] index.php Was loaded in. A ?? reload / Users / Jeffing / Sites / Forbes / WipeContents / Themes / JointsWP- CSS-Master / Index.php One ?? | One ?? | Reload / User / Jeffing / Sites / Jurbo / Wi-P-content /themes/JointsWP-CSS-master/index.php A ?? | A ?? | reload / user / jfearing / sites / zurb / wp-content / themes / jointsWP-CSS- master / index.php one ?? | One ?? | Reload / Users / Jeffing / Sites / Zabar / WP-Content / Themes / Joints YP-CSS-Master / Index.FPAP | | [GLUP] Index.FPP was reloaded. One ?? | Reload / Users / Jeffing / Sites / Forbes / Wipe-Content / Themes / JointsWP- CSS-Master / Index.fip A ?? | One ?? | Reload / User / Jeffing / Sites / Jurrob / Wi-P-Content /themes/JointsWP-CSS-master/index.php A ?? | One ?? | Reload / user / jfearing / sites / zurb / wp-content / themes / joints wp-css-master / index.php one ?? |    

Instead of:

  // default function gulp.task (a "default", ['php', 'watch']);    

You can try:

  // default function gulp.task ('default', ['php'], Function) {gulp.start ('clock');});   

But I can not test it at this time.

Full snippet:

  'Strictly use'; / * Global SIP, Clock, Plugins, Server, Console * / // PHP TASK gulp.task ('php', function (see) {clock {{glob: ['php', 'library / .php']}) .pipe (plugins.livereload (server)) .pipe (plugins.notify ({message: 'php function complete'})}} // clock gulp.task ('watch', function () {// port 35729 Listen   

If this snippet is not working Should, or when the save time is more than one, then edit it Try to delete:

  gulp.task ('php'      

Em> Note: The first two lines in the full snippet are just jshint, so I can prove the code, while I can not execute it without the local php-library.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -