Adding a new task - godaddy-wordpress/sake GitHub Wiki
To add a new task, simply add a new JavaScript file in the tasks folder. The name of the file should match the new task name.
You'll likely need to wrap the task logic with:
module.exports = (gulp, plugins, sake) => {
// do your thing here
}
Depending on your goal, you may also need to require before or inside this block other modules with:
const foo = require('baz')