Skip to content

Commit

Permalink
Quotes cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Welch <[email protected]>
  • Loading branch information
khalwat committed Dec 17, 2017
1 parent e441b95 commit 855b462
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ gulp.task("tailwind", () => {
return gulp.src(pkg.paths.tailwindcss.src)
.pipe($.postcss([
$.tailwindcss(pkg.paths.tailwindcss.conf),
require('autoprefixer'),
require("autoprefixer"),
]))
.pipe(gulp.dest(pkg.paths.build.css));
});
Expand All @@ -81,12 +81,13 @@ class TailwindExtractor {
// purgecss task
gulp.task("purgecss", ["tailwind", "scss"], () => {
switch (process.env.NODE_ENV) {
case 'development':
case "development":
$.fancyLog("-> Copying CSS");
return gulp.src(pkg.globs.distCss)
.pipe(gulp.dest(pkg.paths.build.css));
break;

case 'production':
case "production":
$.fancyLog("-> Running purgecss");
return gulp.src(pkg.globs.distCss)
.pipe($.purgecss({
Expand Down Expand Up @@ -301,13 +302,13 @@ gulp.task("download", (callback) => {
// Run pa11y accessibility tests on each template
function processAccessibility(element, i, callback) {
const accessibilitySrc = pkg.urls.critical + element.url;
const cliReporter = require('./node_modules/pa11y/reporter/cli.js');
const cliReporter = require("./node_modules/pa11y/reporter/cli.js");
const options = {
log: cliReporter,
ignore:
[
'notice',
'warning'
"notice",
"warning"
],
};
const test = $.pa11y(options);
Expand Down Expand Up @@ -398,7 +399,7 @@ gulp.task("fonts", ["generate-fontello"], () => {
});

// static assets version task
gulp.task('static-assets-version', () => {
gulp.task("static-assets-version", () => {
gulp.src(pkg.paths.craftConfig + "general.php")
.pipe($.replace(/'staticAssetsVersion' => (\d+),/g, function(match, p1, offset, string) {
p1++;
Expand All @@ -421,7 +422,7 @@ gulp.task("set-prod-node-env", function() {
});

// Default task
gulp.task("default", ["set-dev-node-env", "css", "js"], () => {
gulp.task("default", ["set-dev-node-env","css", "js"], () => {
$.fancyLog("-> Livereload listening for changes");
$.livereload.listen();
gulp.watch([pkg.paths.src.scss + "**/*.scss"], ["css"]);
Expand Down

0 comments on commit 855b462

Please sign in to comment.