Skip to content

Instantly share code, notes, and snippets.

@duxet
Last active August 29, 2015 14:08
Show Gist options
  • Save duxet/4527a63d893694c0c1db to your computer and use it in GitHub Desktop.
Save duxet/4527a63d893694c0c1db to your computer and use it in GitHub Desktop.
/*
"dependencies": {
"gulp": "^3.8.8",
"gulp-bower-files": "^0.2.7",
"gulp-concat": "^2.4.1",
"gulp-load-plugins": "^0.7.0",
"gulp-sourcemaps": "^1.2.4",
"gulp-uglify": "^1.0.1",
"main-bower-files": "^2.1.0"
}
*/
var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();
var mainBowerFiles = require('main-bower-files');
gulp.task('default', ['deps-css', 'deps-js'], function() {
});
gulp.task('deps-css', function() {
return gulp.src(mainBowerFiles({ filter: /\.css$/ }))
//.pipe(plugins.sourcemaps.init())
.pipe(plugins.concat('deps.css'))
//.pipe(plugins.uglify())
//.pipe(plugins.sourcemaps.write())
.pipe(gulp.dest('assets/css/'));
});
gulp.task('deps-js', function() {
return gulp.src(mainBowerFiles({ filter: /\.js$/ }))
//.pipe(plugins.sourcemaps.init())
.pipe(plugins.concat('deps.js'))
//.pipe(plugins.uglify())
//.pipe(plugins.sourcemaps.write())
.pipe(gulp.dest('assets/js/'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment