Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Add upgrade-atomdoc to the prepublish script
Browse files Browse the repository at this point in the history
  • Loading branch information
benogle committed Sep 10, 2014
1 parent 54eb3f5 commit 7ecbeb2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ module.exports = (grunt) ->
stderr: true
failOnError: true

'update-atomdoc':
command: 'npm update grunt-atomdoc'
options:
stdout: true
stderr: true
failOnError: true

grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-shell')
grunt.loadNpmTasks('grunt-coffeelint')
Expand All @@ -62,7 +69,7 @@ module.exports = (grunt) ->
grunt.registerTask('lint', ['coffeelint', 'cpplint'])
grunt.registerTask('default', ['coffee', 'lint', 'shell:rebuild'])
grunt.registerTask('test', ['default', 'shell:test'])
grunt.registerTask('prepublish', ['clean', 'coffee', 'lint', 'atomdoc'])
grunt.registerTask('prepublish', ['clean', 'coffee', 'lint', 'shell:update-atomdoc', 'atomdoc'])
grunt.registerTask 'clean', ->
rm = require('rimraf').sync
rm 'build'
Expand Down

0 comments on commit 7ecbeb2

Please sign in to comment.