From 7ecbeb20252dd7f5bafcc4c278b2d8c6053b7065 Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Wed, 10 Sep 2014 15:34:32 -0700 Subject: [PATCH] Add upgrade-atomdoc to the prepublish script --- Gruntfile.coffee | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index d9b4aa0..4ad000a 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -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') @@ -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'