Log time taken to upload

This commit is contained in:
Kevin Sawicki 2014-10-20 13:37:19 -07:00
parent 177b3a6d14
commit 6b44369458

View File

@ -31,7 +31,13 @@ module.exports = (gruntObject) ->
cp path.join(docsOutputDir, 'api.json'), path.join(buildDir, 'atom-api.json')
grunt.registerTask 'upload-assets', 'Upload the assets to a GitHub release', ->
done = @async()
doneCallback = @async()
startTime = Date.now()
done = (args...) ->
elapsedTime = Math.round((Date.now() - startTime) / 100) / 10
grunt.log.ok("Upload time: #{elapsedTime}s")
doneCallback(args...)
buildDir = grunt.config.get('atom.buildDir')
assets = getAssets()