| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- var fs = require('fs')
- , path = require('path');
- testTask('Jake', function () {
- this.testFiles.include('test/*.js');
- this.testFiles.exclude('test/helpers.js');
- });
- namespace('doc', function () {
- task('generate', ['doc:clobber'], function () {
- var cmd = '../node-jsdoc-toolkit/app/run.js -n -r=100 ' +
- '-t=../node-jsdoc-toolkit/templates/codeview -d=./doc/ ./lib';
- jake.logger.log('Generating docs ...');
- jake.exec([cmd], function () {
- jake.logger.log('Done.');
- complete();
- });
- }, {async: true});
- task('clobber', function () {
- var cmd = 'rm -fr ./doc/*';
- jake.exec([cmd], function () {
- jake.logger.log('Clobbered old docs.');
- complete();
- });
- }, {async: true});
- });
- desc('Generate docs for Jake');
- task('doc', ['doc:generate']);
- npmPublishTask('jake', function () {
- this.packageFiles.include([
- 'Makefile'
- , 'Jakefile'
- , 'README.md'
- , 'package.json'
- , 'lib/**'
- , 'bin/**'
- , 'test/**'
- ]);
- this.packageFiles.exclude([
- 'test/tmp'
- ]);
- });
|