Gulpfile refactor and cleanup

Created on 12 January 2023, almost 2 years ago
Updated 25 January 2023, almost 2 years ago

Problem/Motivation

The gulpfile could use a refactor and cleanup.

  1. Replace gulp4-run-sequence gulp.series()
  2. Add default gulp task
  3. Compile sass on gulp watch
  4. Clean up comments & formatting
<!--break-->

1. Remove gulp4-run-sequence, and replace with gulp.series()

gulp4-run-sequence works for upgrading old projects to gulp4, but new projects should use the built-in gulp.series() function.

2. Add a default gulp task

Running gulp should run a default task. This would be a good fix for #3. The default task could build sass and watch for changes.

3. Compile sass on gulp watch

When sass files are modified before starting gulp watch, those changes aren't compiled until a sass file is modified again. This is a minor annoyance if you forget to run gulp watch before making style changes.

4. Clean up comments & formatting

Format file to use consistent code formatting, and review and update comments where needed.

✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States hbrokmeier Wisconsin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024