Created
January 2, 2017 14:59
-
-
Save fatorx/489776ec93feb1d26359e1d41d0a1d22 to your computer and use it in GitHub Desktop.
Gulp execute script PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var exec = require('child_process').exec | |
gulp.task('update-templates', function(){ | |
exec('php scripts/update-html.php', function (err, stdout, stderr) { | |
console.log(stdout) | |
console.log(stderr) | |
}) | |
}) | |
gulp.task('default',['update-templates']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Acually, it will freeze. You need to tell the process to it has finished.