1234567891011121314151617181920212223242526272829 |
- #!/usr/bin/env node
- 'use strict';
- // modules
- var path = require('path');
- var grunt = require('grunt');
- var basePath = path.resolve.bind(null, __dirname, '..');
- var pkg = require(basePath('package.json'));
- grunt.task.loadTasks(basePath('tasks'));
- // help
- grunt.help.queue = [
- 'content'
- ];
- grunt.help.content = function() {
- grunt.log.writeln('grunt-init: Create RESTful API Documentation with apidoc. (v' + pkg.version + ')');
- };
- // version
- if(grunt.cli.options.version)
- console.log('grunt-init v' + pkg.version);
- // execute
- grunt.cli();
|