Skip to content

Overrides

Craig Simpson edited this page Oct 20, 2017 · 1 revision

Updating Config

All of the existing configuration can be easily overwritten by passing your new config object into the toolkit.extendConfig() function. An example from a recent project shows how easy it is to update the array of JS files to be concatenated, and change the localhost URL to point to your project, for instance.

Adding Tasks

Additional tasks can be added by passing an object to the toolkit.extendTasks() function, where the key is the name of the task. Example.

Custom Lint Files

You can override any of the lint files contained within this repository by adding a file of the same name in your theme directory. For example, if your theme directory contains a .eslintrc file or phpcs.xml.dist, then it will be automatically used instead of the file included within gulp-wp-toolkit.

Installation

Tasks:

  • Build
  • Clean
  • Lint
  • Watch
  • Serve
  • Default
  • Bump

Default Theme Structure

Sass Bulk Import

Bower

Overrides

Clone this wiki locally