Skip to content

Commit

Permalink
Add display names to task functions
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Sep 26, 2022
1 parent 562ab5a commit f37d032
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 6 deletions.
6 changes: 3 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ require('./tasks/gulp/copy-to-destination.js')
require('./tasks/gulp/watch.js')

// Node tasks
const buildSassdocs = require('./tasks/sassdoc.js')
const runNodemon = require('./tasks/nodemon.js')
const updateDistAssetsVersion = require('./tasks/asset-version.js')
const { buildSassdocs } = require('./tasks/sassdoc.js')
const { runNodemon } = require('./tasks/nodemon.js')
const { updateDistAssetsVersion } = require('./tasks/asset-version.js')
const { cleanDist, cleanPackage, cleanPublic } = require('./tasks/clean.js')
const { runTask } = require('./tasks/run.js')

Expand Down
6 changes: 5 additions & 1 deletion tasks/asset-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,8 @@ async function updateDistAssetsVersion () {
return Promise.all(assetTasks)
}

module.exports = updateDistAssetsVersion
updateDistAssetsVersion.displayName = 'update-dist-assets-version'

module.exports = {
updateDistAssetsVersion
}
4 changes: 4 additions & 0 deletions tasks/clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ function cleanPublic () {
])
}

cleanDist.displayName = 'clean:dist'
cleanPackage.displayName = 'clean:package'
cleanPublic.displayName = 'clean:public'

module.exports = {
cleanDist,
cleanPackage,
Expand Down
6 changes: 5 additions & 1 deletion tasks/nodemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ function runNodemon () {
})
}

module.exports = runNodemon
runNodemon.displayName = 'nodemon'

module.exports = {
runNodemon
}
6 changes: 5 additions & 1 deletion tasks/sassdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,8 @@ function buildSassdocs () {
})
}

module.exports = buildSassdocs
buildSassdocs.displayName = 'sassdoc:compile'

module.exports = {
buildSassdocs
}

0 comments on commit f37d032

Please sign in to comment.