-
-
Save yurimorales/ca03ce82f2a6fcd4cd9218072f415664 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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment