Switch from Gulp build process to something else

Created on 12 November 2022, about 2 years ago
Updated 17 October 2023, about 1 year ago

Problem/Motivation

Gulp is not developed any more - last release 4.0.2 happened in 2019. We should switch to something else.

Bootstrap 5 is using npm scripts - https://getbootstrap.com/docs/5.2/getting-started/contribute/#tooling-setup.

There are other newer build tools like:

- Parcel
- Webpack

Check https://github.com/postcss/postcss for more info about possible newer popular build tools.

Consider doing more research before starting with this.

Replacing gulp build process will be not that easy because of custom gulp-options.yml and SASS import compilation support for parent themes.

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇷🇸Serbia pivica

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.

  • 🇷🇸Serbia pivica

    Gulp has some registry system for better use/sharing of tasks, worth of checking https://gulpjs.com/docs/en/advanced/creating-custom-registries/.

  • 🇷🇸Serbia pivica

    Drupal 10 switched to postcss in core themes with some simple js scripts that are executed with node from package.json with.

    Still I don't like fully postcss approach, it is great for autoprefixer support and other similar stuff, but sass still looks much better.

    For now I think the best options are:

    • try not to complicate stack more, so avoid webpack and other things for now
    • use sass dart implementation
    • start adding css variables which are supported by sass variables
    • use postcss the same as we are using it now
    • replace gulp with custom js code for compiling and building css - basically we need to replace current build-css task "npx gulp clean:css && npx gulp sass" with something else
    • use package.json scripts (as we are doing now) to execute various tasks
Production build 0.71.5 2024