-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js~
40 lines (33 loc) · 906 Bytes
/
gulpfile.js~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Gulp.js configuration
'use strict';
const
// source and build folders
dir = {
src : 'src/',
build : '/var/www/wp-content/themes/mytheme/'
},
// 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));
});