M
M
Maxim2019-03-12 09:24:43
gulp.js
Maxim, 2019-03-12 09:24:43

How to run exe file from Gulp task?

You just need to run the .exe file located in the dist/*.exe folder below the directory from the task
installed the gulp-run-command plugin, I run
it like this:

var run = require('gulp-run-command').default;
gulp.task('test', run('./dist/qt_webconvert_array.exe'));

But how to transfer it to the current task at the very end?
So it doesn’t want to work =( I don’t really like doing a separate task, and how can I start it after defualt is done?
gulp.task('default',['minSvg'],function() {
  //------------------------------
  var options={
    Confinlinesource:{
      compress: true,
    },
    Confhtmlmin:{
   		collapseWhitespace: true,
   		removeComments:true		
    }
  };
    .pipe(inlinesource(options.Confinlinesource))
  .pipe(htmlmin(options.Confhtmlmin))
  .pipe(gulp.dest('dist'))
  .pipe(gzip())
  .pipe(gulp.dest('dist'))
       .pipe(run('./dist/qt_webconvert_array.exe'));
});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question