Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

56 lines (47 sloc) 1.319 kb
var fs = require('fs')
, path = require('path');
desc('Runs the Jake tests.');
task('test', function () {
var cmds = fs.readdirSync('./tests')
.filter(function (f) {
return /\.js$/.test(f);
})
.map(function (f) {
return 'node ' + path.join('tests', f);
})
, quiet = jake.program.opts.quiet;
jake.exec(cmds, function () {
jake.logger.log('All tests passed.');
complete();
}, {printStdout: !quiet});
}, {async: true});
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']);
var p = new jake.NpmPublishTask('jake', [
'Makefile'
, 'Jakefile'
, 'README.md'
, 'package.json'
, 'lib/**'
, 'bin/**'
, 'tests/**'
]);
jake.Task['npm:definePackage'].invoke();
Jump to Line
Something went wrong with that request. Please try again.