Last active
October 12, 2017 15:58
-
-
Save Tmeister/b94eb8077ffea9fda3be to your computer and use it in GitHub Desktop.
Simple Gulpfile to use with underscores "_s" theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var gulp = require( 'gulp' ); | |
var browserSync = require( 'browser-sync' ).create(); | |
var sass = require( 'gulp-ruby-sass' ); | |
var del = require( 'del' ); | |
gulp.task( 'sass', function() { | |
return sass( 'sass/style.scss' ) | |
.on( 'error', sass.logError ) | |
.pipe( gulp.dest( './' ) ) | |
.pipe( browserSync.stream() ); | |
} ); | |
gulp.task( 'serve', function() { | |
browserSync.init( { | |
files: [ './**/*.php', '*.php' ], | |
proxy: 'http://wp3.dev', | |
} ); | |
gulp.watch( [ './sass/**/*.scss' ], [ 'sass' ] ); | |
} ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "THEME NAME", | |
"version": "1.0.0", | |
"description": "WordPress Theme", | |
"author": "Enrique Chavez", | |
"license": "GPL-3.0", | |
"devDependencies": { | |
"browser-sync": "^2.9.11", | |
"gulp-ruby-sass": "^2.0.4", | |
"wiredep": "^2.2.2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment