Setup
Initialize Project
If you don’t have a package.json
file, run this to get one: npm init
.
Install & Setup Gulp 4
Run this to install Gulp 4:
npm install --save gulpjs/gulp#4.0
Create a file called gulpfile.js
with:
const gulp = require('gulp');
const config = {};
Even though Gulp 4 isn’t officially out, it’s safe to use and offers useful stuff like the ability to declare task groups in series or parallel.
Install Plugins
Find a list of all available plugins by searching for “theme-tools-plugin” on npm.