Skip to content

Commit

Permalink
Add trailing commas to gulpfile.js
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
Aetles committed Feb 4, 2016
1 parent bd37bd0 commit 5361643
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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: [
'**/*',
Expand All @@ -76,7 +76,7 @@ var PATHS = {
'!**/composer.json',
'!**/composer.lock',
'!**/codesniffer.ruleset.xml',
'!**/packaged/*'
'!**/packaged/*',
]
};

Expand All @@ -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, {
Expand Down

0 comments on commit 5361643

Please sign in to comment.