Last active
January 16, 2023 13:30
-
-
Save objarni/2ece180ddb69eb71564e to your computer and use it in GitHub Desktop.
Installing gulp in Windows
This file contains 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
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 | |
Why so complicated to install a modern tool? Gulp should be fixed to live in Windows. Also see https://stackoverflow.com/questions/33051213/installing-gulp-to-windows-10 .
Thanks
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
Then how comes I've just run it ? :-) Yes, there is a trick involved. https://sourceforge.net/projects/unxutils/files/unxutils/current/ - grab UnxUtils.zip. It's old and kind of pretends to be Unix too much :-) but what I have is it's wbin with libfl.a, libfl.lib and sh.exe added and wbin is in my path. Judging by the sizes I also have UnxUpdates.zip (from http://unxutils.sourceforge.net/) merged in, albeit with different timestamps. It's an old bag that people have been copying around for ages. There might be some commands that don't work but simple things like touch do.