You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ashley Gibson edited this page Jan 30, 2026
·
2 revisions
Adding a new task requires two changes:
Creating your new task file.
Updating gulpfile.js to export your task file.
New task file
Add a new JavaScript file in the tasks folder. The name of the file should match the new task name as closely as possible. For example: tasks/mynewtask.js
Here's an example file:
// define your taskconstmyNewTask=(done)=>{// perform your task here// make sure you have a return statementreturnPromise.resolve()}// if necessary, customize the display namemyNewTask.displayName='task:new'// necessary if you want colons or hyphens in the actual task command// exportexport{myNewTask}
Gulpfile changes
Update the gulpfile.js to add your task file to the list of task exports at the bottom:
/************** Task Exports */
export * from './tasks/build.js'
export * from './tasks/bump.js'
+ export * from './tasks/mynewtask.js'