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

[READ ONLY]

Notifications You must be signed in to change notification settings

Pronovix/gulp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.