Skip to content

Instantly share code, notes, and snippets.

@fernandiez
Created September 20, 2018 00:11
Show Gist options
  • Select an option

  • Save fernandiez/2404260bda1135c989914fd0be2596e5 to your computer and use it in GitHub Desktop.

Select an option

Save fernandiez/2404260bda1135c989914fd0be2596e5 to your computer and use it in GitHub Desktop.
Archivo de configuración Gulp
// Gulp.js configuration
'use strict';
const
// source and build folders
dir = {
src : 'src/',
build : '/themebuild/'
},
// Gulp and plugins
gulp = require('gulp'),
gutil = require('gulp-util'),
newer = require('gulp-newer'),
imagemin = require('gulp-imagemin'),
sass = require('gulp-sass'),
postcss = require('gulp-postcss'),
deporder = require('gulp-deporder'),
concat = require('gulp-concat'),
stripdebug = require('gulp-strip-debug'),
uglify = require('gulp-uglify')
;
// Browser-sync
var browsersync = false;
// PHP settings
const php = {
src : dir.src + 'template/**/*.php',
build : dir.build
};
// copy PHP files
gulp.task('php', () => {
return gulp.src(php.src)
.pipe(newer(php.build))
.pipe(gulp.dest(php.build));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment