and again
This commit is contained in:
parent
8d0cec8804
commit
b67b03069b
|
@ -12,11 +12,6 @@ language: php
|
||||||
php:
|
php:
|
||||||
- "7.0"
|
- "7.0"
|
||||||
- "5.6"
|
- "5.6"
|
||||||
- "5.5"
|
|
||||||
- "5.4"
|
|
||||||
- "5.3"
|
|
||||||
# Current $required_php_version for WordPress: 5.2.4
|
|
||||||
- "5.2"
|
|
||||||
|
|
||||||
# Ditch sudo and use containers.
|
# Ditch sudo and use containers.
|
||||||
# @link http://docs.travis-ci.com/user/migrating-from-legacy/#Why-migrate-to-container-based-infrastructure%3F
|
# @link http://docs.travis-ci.com/user/migrating-from-legacy/#Why-migrate-to-container-based-infrastructure%3F
|
||||||
|
|
26
gulpfile.js
26
gulpfile.js
|
@ -126,7 +126,7 @@ gulp.task( 'imagemin', function() {
|
||||||
gulp.task( 'cssnano', function() {
|
gulp.task( 'cssnano', function() {
|
||||||
return gulp.src( paths.css + '/theme.css' )
|
return gulp.src( paths.css + '/theme.css' )
|
||||||
.pipe( sourcemaps.init( { loadMaps: true } ) )
|
.pipe( sourcemaps.init( { loadMaps: true } ) )
|
||||||
.pipe( plumber ( {
|
.pipe( plumber( {
|
||||||
errorHandler: function( err ) {
|
errorHandler: function( err ) {
|
||||||
console.log( err );
|
console.log( err );
|
||||||
this.emit( 'end' );
|
this.emit( 'end' );
|
||||||
|
@ -144,7 +144,7 @@ gulp.task( 'minifycss', function() {
|
||||||
.pipe( cleanCSS( { compatibility: '*' } ) )
|
.pipe( cleanCSS( { compatibility: '*' } ) )
|
||||||
.pipe( plumber( {
|
.pipe( plumber( {
|
||||||
errorHandler: function( err ) {
|
errorHandler: function( err ) {
|
||||||
console.log( err) ;
|
console.log( err ) ;
|
||||||
this.emit( 'end' );
|
this.emit( 'end' );
|
||||||
}
|
}
|
||||||
} ) )
|
} ) )
|
||||||
|
@ -154,12 +154,14 @@ gulp.task( 'minifycss', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task( 'cleancss', function() {
|
gulp.task( 'cleancss', function() {
|
||||||
return gulp.src( paths.css + '/*.min.css', { read: false } ) // much faster
|
return gulp.src( paths.css + '/*.min.css', { read: false } ) // Much faster
|
||||||
.pipe(ignore( 'theme.css') )
|
.pipe( ignore( 'theme.css' ) )
|
||||||
.pipe( rimraf() );
|
.pipe( rimraf() );
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task( 'styles', function( callback ){ gulpSequence( 'sass', 'minifycss' )( callback ); });
|
gulp.task( 'styles', function( callback ) {
|
||||||
|
gulpSequence( 'sass', 'minifycss' )( callback );
|
||||||
|
} );
|
||||||
|
|
||||||
|
|
||||||
// Run:
|
// Run:
|
||||||
|
@ -169,12 +171,10 @@ gulp.task( 'browser-sync', function() {
|
||||||
browserSync.init( cfg.browserSyncWatchFiles, cfg.browserSyncOptions );
|
browserSync.init( cfg.browserSyncWatchFiles, cfg.browserSyncOptions );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
||||||
// Run:
|
// Run:
|
||||||
// gulp watch-bs
|
// gulp watch-bs
|
||||||
// Starts watcher with browser-sync. Browser-sync reloads page automatically on your browser
|
// Starts watcher with browser-sync. Browser-sync reloads page automatically on your browser
|
||||||
gulp.task( 'watch-bs', ['browser-sync', 'watch', 'scripts'], function () { } );
|
gulp.task( 'watch-bs', ['browser-sync', 'watch', 'scripts'], function() { } );
|
||||||
|
|
||||||
|
|
||||||
// Run:
|
// Run:
|
||||||
// gulp scripts.
|
// gulp scripts.
|
||||||
|
@ -192,7 +192,7 @@ gulp.task( 'scripts', function() {
|
||||||
gulp.src( scripts )
|
gulp.src( scripts )
|
||||||
.pipe( concat( 'theme.min.js' ) )
|
.pipe( concat( 'theme.min.js' ) )
|
||||||
.pipe( uglify() )
|
.pipe( uglify() )
|
||||||
.pipe( gulp.dest(paths.js) );
|
.pipe( gulp.dest( paths.js) );
|
||||||
|
|
||||||
gulp.src( scripts )
|
gulp.src( scripts )
|
||||||
.pipe( concat( 'theme.js' ) )
|
.pipe( concat( 'theme.js' ) )
|
||||||
|
@ -213,10 +213,9 @@ gulp.task( 'copy-assets', function() {
|
||||||
|
|
||||||
////////////////// All Bootstrap 4 Assets /////////////////////////
|
////////////////// All Bootstrap 4 Assets /////////////////////////
|
||||||
// Copy all JS files
|
// Copy all JS files
|
||||||
|
|
||||||
|
|
||||||
var stream = gulp.src( paths.node + 'bootstrap/dist/js/**/*.js' )
|
var stream = gulp.src( paths.node + 'bootstrap/dist/js/**/*.js' )
|
||||||
.pipe( gulp.dest( paths.dev + '/js/bootstrap4' ) );
|
.pipe( gulp.dest( paths.dev + '/js/bootstrap4' ) );
|
||||||
|
|
||||||
// Copy all Bootstrap SCSS files
|
// Copy all Bootstrap SCSS files
|
||||||
gulp.src( paths.node + 'bootstrap/scss/**/*.scss' )
|
gulp.src( paths.node + 'bootstrap/scss/**/*.scss' )
|
||||||
.pipe( gulp.dest( paths.dev + '/sass/bootstrap4' ) );
|
.pipe( gulp.dest( paths.dev + '/sass/bootstrap4' ) );
|
||||||
|
@ -225,7 +224,7 @@ gulp.task( 'copy-assets', function() {
|
||||||
|
|
||||||
// Copy all Font Awesome Fonts
|
// Copy all Font Awesome Fonts
|
||||||
gulp.src( paths.node + 'font-awesome/fonts/**/*.{ttf,woff,woff2,eot,svg}' )
|
gulp.src( paths.node + 'font-awesome/fonts/**/*.{ttf,woff,woff2,eot,svg}' )
|
||||||
.pipe( gulp.dest( './fonts') );
|
.pipe( gulp.dest( './fonts' ) );
|
||||||
|
|
||||||
// Copy all Font Awesome SCSS files
|
// Copy all Font Awesome SCSS files
|
||||||
gulp.src( paths.node + 'font-awesome/scss/*.scss' )
|
gulp.src( paths.node + 'font-awesome/scss/*.scss' )
|
||||||
|
@ -244,7 +243,6 @@ gulp.task( 'copy-assets', function() {
|
||||||
.pipe( gulp.dest( paths.js + paths.vendor ) );
|
.pipe( gulp.dest( paths.js + paths.vendor ) );
|
||||||
|
|
||||||
// Copy Popper JS files
|
// Copy Popper JS files
|
||||||
|
|
||||||
gulp.src( paths.node + 'popper.js/dist/umd/popper.min.js' )
|
gulp.src( paths.node + 'popper.js/dist/umd/popper.min.js' )
|
||||||
.pipe( gulp.dest( paths.js + paths.vendor ) );
|
.pipe( gulp.dest( paths.js + paths.vendor ) );
|
||||||
gulp.src( paths.node + 'popper.js/dist/umd/popper.js' )
|
gulp.src( paths.node + 'popper.js/dist/umd/popper.js' )
|
||||||
|
@ -253,7 +251,7 @@ gulp.task( 'copy-assets', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Deleting the files distributed by the copy-assets task
|
// Deleting the files distributed by the copy-assets task
|
||||||
gulp.task( 'clean-vendor-assets', function () {
|
gulp.task( 'clean-vendor-assets', function() {
|
||||||
return del( [paths.dev+'/js/bootstrap4/**', paths.dev+'/sass/bootstrap4/**', './fonts/*wesome*.{ttf,woff,woff2,eot,svg}', paths.dev+'/sass/fontawesome/**', paths.dev+'/sass/underscores/**', paths.dev+'/js/skip-link-focus-fix.js', paths.js+'/**/skip-link-focus-fix.js', paths.js+'/**/popper.min.js', paths.js+'/**/popper.js', ( paths.vendor!==''?( paths.js+paths.vendor+'/**' ):'' )]);
|
return del( [paths.dev+'/js/bootstrap4/**', paths.dev+'/sass/bootstrap4/**', './fonts/*wesome*.{ttf,woff,woff2,eot,svg}', paths.dev+'/sass/fontawesome/**', paths.dev+'/sass/underscores/**', paths.dev+'/js/skip-link-focus-fix.js', paths.js+'/**/skip-link-focus-fix.js', paths.js+'/**/popper.min.js', paths.js+'/**/popper.js', ( paths.vendor!==''?( paths.js+paths.vendor+'/**' ):'' )]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Reference in New Issue