Skip to content

Instantly share code, notes, and snippets.

@fa8ster
Created August 21, 2015 06:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fa8ster/6d1cb02afc3469dd1b0a to your computer and use it in GitHub Desktop.
Save fa8ster/6d1cb02afc3469dd1b0a to your computer and use it in GitHub Desktop.
var gulp = require('gulp'),
sass = require('gulp-sass'),
browserSync = require('browser-sync'),
mamp = require('gulp-mamp');
var options = {};
gulp.task('start', function(cb){
mamp(options, 'start', cb);
});
gulp.task('stop', function(cb){
mamp(options, 'stop', cb);
});
gulp.task('mamp', ['start']);
gulp.task('sass', function () {
gulp.src('sass/**/*')
.pipe(sass({includePaths: ['sass'], outputStyle: 'compressed'}))
.pipe(gulp.dest('.'));
});
gulp.task('browser-sync', function() {
browserSync.init(["*.css", "*.js", '*.php'], {
proxy: 'https://local.matrix42.com',
https: true,
ghostMode: {
clicks: true,
forms: true,
scroll: true
},
browser: "google chrome"
});
});
gulp.task('default', ['mamp','browser-sync'], function () {
gulp.watch("sass/*.scss", ['sass']);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment