Skip to content

Instantly share code, notes, and snippets.

@yurimorales
Forked from objarni/Install Gulp.txt
Created June 17, 2018 00:22
Show Gist options
  • Save yurimorales/ca03ce82f2a6fcd4cd9218072f415664 to your computer and use it in GitHub Desktop.
Save yurimorales/ca03ce82f2a6fcd4cd9218072f415664 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment