Skip to content

Instantly share code, notes, and snippets.

@fmagrosoto
Created February 11, 2016 22:42
Show Gist options
  • Save fmagrosoto/d87f9ea1f91b61585d7f to your computer and use it in GitHub Desktop.
Save fmagrosoto/d87f9ea1f91b61585d7f to your computer and use it in GitHub Desktop.
Tarea de GULP para copiar todos los archivos minificados de Bootstrap y jQuery a una carpeta de algún proyecto en Node
var gulp = require('gulp');
gulp.task('bootCss',function(){
gulp.src('bower_components/bootstrap/dist/css/bootstrap.min.css')
.pipe(gulp.dest('Dist/css/'));
});
gulp.task('bootJs',function(){
gulp.src('bower_components/bootstrap/dist/js/bootstrap.min.js')
.pipe(gulp.dest('Dist/js/'));
});
gulp.task('jQuery',function(){
gulp.src('bower_components/jquery/dist/jquery.min.js')
.pipe(gulp.dest('Dist/js/'));
});
gulp.task('fonts',function(){
gulp.src('bower_components/bootstrap/dist/fonts/*.*')
.pipe(gulp.dest('Dist/fonts/'));
});
gulp.task('pasarBoo',['bootCss','bootJs','jQuery','fonts']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment