Skip to content

Instantly share code, notes, and snippets.

@objarni
Last active January 16, 2023 13:30
Show Gist options
  • Save objarni/2ece180ddb69eb71564e to your computer and use it in GitHub Desktop.
Save objarni/2ece180ddb69eb71564e to your computer and use it in GitHub Desktop.
Installing gulp in Windows
1. Install nodejs. https://nodejs.org/en/
2. Check npm (node package manager) is installed via command prompt:
$ npm
3. Install gulp:
$ npm install gulp --global
4. In relevant project folder, create 'gulpfile.js':
// build flow that copies MyNiceProgram.exe to another
// directory (with forced folder creation and overwrite)
var gulp = require('gulp');
var exefile = 'some/bin/path/MyNiceProgram.exe';
gulp.task('build', function(){
gulp.src(exefile).pipe(gulp.dest('../../Binaries/'));
});
gulp.task('default', ['build'], function(){
gulp.watch(exefile, ['build']);
});
5. Run gulp:
$ gulp
@tounsils
Copy link

Thanks

@MessiDaGod
Copy link

there's no such thing as touch on windows...

there is now with bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment