Skip to content

Instantly share code, notes, and snippets.

@DavidPeralvarez
Created December 17, 2018 11:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidPeralvarez/5e9b0545c07b38d437bfa88c5bc00d41 to your computer and use it in GitHub Desktop.
Save DavidPeralvarez/5e9b0545c07b38d437bfa88c5bc00d41 to your computer and use it in GitHub Desktop.
Definición de tareas y el archivo gulpfile.js
var gulp = require('gulp');
gulp.task('nombreTarea', nombreFuncion);
function nombreFuncion(done){
// tarea
console.log("Esto es una función que asignamos a una tarea de Gulp");
done();
}
gulp.task('tarea2', function(done){
console.log("Esto es la tarea 2");
done();
});
gulp.task('default', function(done){
console.log("Esta es la tarea por defecto");
done();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment