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 | |
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
Thanks