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
|
||||||
|
|
12
gulpfile.js
12
gulpfile.js
|
@ -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,13 +171,11 @@ 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.
|
||||||
// Uglifies and concat all JS files into one
|
// Uglifies and concat all JS files into one
|
||||||
|
@ -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' ) );
|
||||||
|
@ -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' )
|
||||||
|
|
Reference in New Issue