Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Gulp: Setup Gulp File
// Include gulp
var gulp = require('gulp');
// Include Our Plugins
var jshint = require('gulp-jshint');
var sass = require('gulp-sass');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
// Lint Task
gulp.task('lint', function() {
return gulp.src('js/*.js')
// Compile Our Sass
gulp.task('sass', function() {
return gulp.src('scss/*.scss')
// Concatenate & Minify JS
gulp.task('scripts', function() {
return gulp.src('js/*.js')
// Watch Files For Changes
gulp.task('watch', function() {'js/*.js', ['lint', 'scripts']);'scss/*.scss', ['sass']);
// Default Task
gulp.task('default', ['lint', 'sass', 'scripts', 'watch']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.