From 5a8cf9a00f2f65f01009abea61215e98bb9baa23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Ko=CC=88nemann?= Date: Wed, 7 Mar 2018 13:32:41 +0100 Subject: [PATCH] exclude gulpfile.js from Travis checks --- .jscsrc | 3 ++- gulpfile.js | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.jscsrc b/.jscsrc index b99fa1c..bb73a06 100644 --- a/.jscsrc +++ b/.jscsrc @@ -7,6 +7,7 @@ "src/**/*.js", "js/core.js", "js/popper.js", - "js/theme.js" + "js/theme.js", + "gulpfile.js" ] } diff --git a/gulpfile.js b/gulpfile.js index c60481c..122c6e9 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -161,7 +161,7 @@ gulp.task( 'cleancss', function() { gulp.task( 'styles', function( callback ) { gulpSequence( 'sass', 'minifycss' )( callback ); } ); - + // Run: // gulp browser-sync // Starts browser-sync task for starting the server. @@ -172,7 +172,8 @@ gulp.task( 'browser-sync', function() { // Run: // gulp watch-bs // 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: // gulp scripts. @@ -250,7 +251,7 @@ gulp.task( 'copy-assets', function() { // Deleting the files distributed by the copy-assets task 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 + '/**' ):'' )] ); }); // Run @@ -261,7 +262,7 @@ gulp.task( 'dist', ['clean-dist'], function() { .pipe( replace( '/js/jquery.slim.min.js', '/js' + paths.vendor + '/jquery.slim.min.js', { 'skipBinary': true } ) ) .pipe( replace( '/js/popper.min.js', '/js' + paths.vendor + '/popper.min.js', { 'skipBinary': true } ) ) .pipe( replace( '/js/skip-link-focus-fix.js', '/js' + paths.vendor + '/skip-link-focus-fix.js', { 'skipBinary': true } ) ) - .pipe(gulp.dest( paths.dist ) ); + .pipe( gulp.dest( paths.dist ) ); }); // Deleting any file inside the /dist folder