From 53616439b069c4188298f96b8b80efdc176e1a48 Mon Sep 17 00:00:00 2001 From: Adrian Bengtson Date: Thu, 4 Feb 2016 12:50:39 +0100 Subject: [PATCH] Add trailing commas to gulpfile.js This is a personal preference. It is allowed in javascript (since ES5). The trailing commas reduces risk of copy-paste errors and it makes the diffs looks cleaner (no touching of other lines when adding/removing entries in arrays). --- gulpfile.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 2e8fa4246..08f01dbcb 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -26,7 +26,7 @@ var PATHS = { sass: [ 'assets/components/foundation-sites/scss', 'assets/components/motion-ui/src', - 'assets/components/fontawesome/scss' + 'assets/components/fontawesome/scss', ], javascript: [ 'assets/components/what-input/what-input.js', @@ -58,12 +58,12 @@ var PATHS = { 'assets/components/motion-ui/motion-ui.js', // Include your own custom scripts (located in the custom folder) - 'assets/javascript/custom/*.js' + 'assets/javascript/custom/*.js', ], phpcs: [ '**/*.php', '!wpcs', - '!wpcs/**' + '!wpcs/**', ], pkg: [ '**/*', @@ -76,7 +76,7 @@ var PATHS = { '!**/composer.json', '!**/composer.lock', '!**/codesniffer.ruleset.xml', - '!**/packaged/*' + '!**/packaged/*', ] }; @@ -85,7 +85,7 @@ gulp.task('browser-sync', ['build'], function() { var files = [ '**/*.php', - 'assets/images/**/*.{png,jpg,gif}' + 'assets/images/**/*.{png,jpg,gif}', ]; browserSync.init(files, {