var gulp 	  = require('gulp');
    concat    = require('gulp-concat'),
    minifyCSS = require('gulp-minify-css'),
    uglify 	  = require('gulp-uglify')

gulp.task('styles', function () {
    gulp.src(['./public/stylesheets/*.css'])
        .pipe(minifyCSS())
        .pipe(concat('/public/stylesheets/dist/styles.min.css'))
        .pipe(gulp.dest('./'))
});


gulp.task('scripts', function () {
    gulp.src(['./public/javascripts/*.js'])
        .pipe(uglify())
        .pipe(concat('/public/javascripts/dist/scripts.min.js'))
        .pipe(gulp.dest('./'))
});

gulp.task('default', ['styles','scripts']);