grunt-apidoc 558 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env node
  2. 'use strict';
  3. // modules
  4. var path = require('path');
  5. var grunt = require('grunt');
  6. var basePath = path.resolve.bind(null, __dirname, '..');
  7. var pkg = require(basePath('package.json'));
  8. grunt.task.loadTasks(basePath('tasks'));
  9. // help
  10. grunt.help.queue = [
  11. 'content'
  12. ];
  13. grunt.help.content = function() {
  14. grunt.log.writeln('grunt-init: Create RESTful API Documentation with apidoc. (v' + pkg.version + ')');
  15. };
  16. // version
  17. if(grunt.cli.options.version)
  18. console.log('grunt-init v' + pkg.version);
  19. // execute
  20. grunt.cli();