-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented chages to build Method v1.2.0
- Loading branch information
Showing
9 changed files
with
128 additions
and
50 deletions.
There are no files selected for viewing
This file contains 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
Submodule build
updated
11 files
+16 −2 | CHANGELOG | |
+9 −7 | gulpfile.js | |
+1 −1 | lib/admin-customization.php | |
+72 −10 | lib/class-method-layout.php | |
+0 −45 | lib/class-theme-layout.php | |
+1 −0 | lib/cmb2-options-loader.php | |
+3 −3 | lib/helper-functions.php | |
+3 −2 | lib/theme-customization.php | |
+3 −8 | lib/theme-setup.php | |
+1 −1 | package.json | |
+1 −1 | style.css |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{% import '_globals.html' as globals %}{% extends "_barebones.html" %}{% block content %}var gulp = require('gulp'), | ||
sass = require('gulp-dart-sass'), | ||
autoprefixer = require('gulp-autoprefixer'), | ||
jshint = require('gulp-jshint'), | ||
uglify = require('gulp-uglify'), | ||
imagemin = require('gulp-imagemin'), | ||
rename = require('gulp-rename'), | ||
concat = require('gulp-concat'), | ||
notify = require('gulp-notify'), | ||
cache = require('gulp-cache'), | ||
browserSync = require('browser-sync').create(), | ||
del = require('del'), | ||
watchSass = require("gulp-watch-sass"), | ||
cleanCSS = require('gulp-clean-css'); | ||
|
||
gulp.task('process-styles', function () { | ||
var postcss = require('gulp-postcss'); | ||
var assets = require('postcss-assets'); | ||
|
||
return gulp.src(['./theme.css','theme.min.css']) | ||
.pipe(postcss([assets({ | ||
loadPaths: ['inc/bootstrap-icons/','assets/images/'] | ||
})])) | ||
.pipe(gulp.dest('.')); | ||
}); | ||
|
||
gulp.task('compile-styles', function() { | ||
return gulp.src('./theme.scss') | ||
.pipe(sass({outputStyle: 'expanded'}).on('error', sass.logError)) | ||
.pipe(autoprefixer('last 2 versions')) | ||
.pipe(gulp.dest('.')) | ||
.pipe(rename({suffix: '.min'})) | ||
.pipe(cleanCSS('level: 2')) | ||
.pipe(gulp.dest('.')) | ||
.pipe(browserSync.stream()) | ||
.pipe(notify({ message: 'Styles task complete' })); | ||
}); | ||
|
||
gulp.task('styles', gulp.series('compile-styles', 'process-styles')); | ||
|
||
gulp.task('serve', function() { | ||
|
||
browserSync.init({ | ||
proxy: "{{globals.localdev_url}}" | ||
}); | ||
|
||
// Watch .scss files | ||
gulp.watch(['./**/*.scss', '!./node_modules/', '!./.git/'], gulp.series('compile-styles', 'process-styles')); | ||
|
||
gulp.watch(['./**/*.*', '!./node_modules/', '!./.git/']).on('change', browserSync.reload); | ||
|
||
}); | ||
|
||
gulp.task('scripts', function() { | ||
return gulp.src(['inc/bootstrap/js/bootstrap.bundle.js'{% if globals.js_use_matchheight %},'inc/matchHeight/jquery.matchHeight.js'{% endif %}{% if globals.js_use_jarallax %},'inc/jarallax/jarallax.js'{% endif %}]) | ||
.pipe(jshint('.jshintrc')) | ||
.pipe(jshint.reporter('default')) | ||
.pipe(concat('assets/js/scripts.js')) | ||
.pipe(gulp.dest('.')) | ||
.pipe(rename({suffix: '.min'})) | ||
.pipe(uglify()) | ||
.pipe(gulp.dest('.')) | ||
.pipe(notify({ message: 'Scripts task complete' })); | ||
}); | ||
|
||
|
||
gulp.task('watch', function() { | ||
|
||
// Watch .scss files | ||
gulp.watch(['./**/*.scss', '!./node_modules/', '!./.git/'], gulp.series('compile-styles', 'process-styles')); | ||
|
||
}); | ||
{% endblock %} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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