Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Latest commit

 

History

History
50 lines (39 loc) · 1.12 KB

README.md

File metadata and controls

50 lines (39 loc) · 1.12 KB

Gulp Theme task runner

Usage

Configuration

  1. Copy gulpsettings.js.dist as gulpsettings.js to the folder where Jenkinsfile resides.
  2. Configure the newly copied gulpsettings.js. Path can be either relative or absolute. See Gulp src's cwd option documentation for further information.

gulpsettings.js example

/**
 * @file
 * Provide configuration for the task runner.
 */

module.exports = {
  scss: [
    {
      path: "/path/to/source",
      globs: [
        "scss/**/*.scss",
        "!scss/01-vendor/**"
      ]
    }
  ],
  js: [
    {
      path: "/path/to/source",
      globs: [
        "js/**/*.es6.js"
      ]
    }
  ]
};

Debugging

If you want to have non-minified CSS with sourcemaps, run npm run gulp -- --debug or npm run gulp watch -- --debug.

Troubleshooting

  • You get No gulpsettings.js file detected. error when running npm run gulp: You have copied your gulpsettings.js file to a wrong folder.
  • npm run gulp runs with no issues, but you still don't have the compiled CSS: Make sure to give the correct path to your theme.