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

Commit

Permalink
Generate an api.json during prepublish
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Aug 19, 2014
1 parent 545c9f5 commit 9169fd7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules/
.DS_Store
npm-debug.log
lib/
api.json
8 changes: 6 additions & 2 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,13 @@ module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-shell')
grunt.loadNpmTasks('grunt-coffeelint')
grunt.loadNpmTasks('grunt-peg')
grunt.loadNpmTasks('grunt-atomdoc')

grunt.registerTask 'clean', ->
require('rimraf').sync('lib')
require('rimraf').sync('api.json')

grunt.registerTask 'clean', -> require('rimraf').sync('lib')
grunt.registerTask('lint', ['coffeelint'])
grunt.registerTask('default', ['coffee', 'peg', 'lint'])
grunt.registerTask('prepublish', ['clean', 'coffee', 'peg', 'lint'])
grunt.registerTask('prepublish', ['clean', 'coffee', 'peg', 'lint', 'atomdoc'])
grunt.registerTask('test', ['default', 'shell:test'])
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"grunt-coffeelint": "0.0.6",
"rimraf": "~2.1.4",
"coffee-script": "~1.7.0",
"grunt-peg": "~1.1.0"
"grunt-peg": "~1.1.0",
"grunt-atomdoc": "^0.2.0"
}
}

0 comments on commit 9169fd7

Please sign in to comment.