Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 44 lines (35 sloc) 0.963 kB
65c610c Updated jake:test task to run all tests in dir.
mde authored
1 var fs = require('fs')
2 , path = require('path');
35ab8b1 Added Jakefile for packaging.
mde authored
3
cbbaf59 Converted tests to TestTask.
mde authored
4 var t = new jake.TestTask('Jake', function () {
0cd822d 'tests' should be 'test' directory
mde authored
5 this.testFiles.include('test/*.js');
6 this.testFiles.exclude('test/helpers.js');
cbbaf59 Converted tests to TestTask.
mde authored
7 });
434d81d @mde Get started on sorting out tests.
mde authored
8
e002485 @mde Added task for generating API docs.
mde authored
9 namespace('doc', function () {
10 task('generate', ['doc:clobber'], function () {
11 var cmd = '../node-jsdoc-toolkit/app/run.js -n -r=100 ' +
12 '-t=../node-jsdoc-toolkit/templates/codeview -d=./doc/ ./lib';
23c045d Implemented --quiet flag.
mde authored
13 jake.logger.log('Generating docs ...');
e002485 @mde Added task for generating API docs.
mde authored
14 jake.exec([cmd], function () {
23c045d Implemented --quiet flag.
mde authored
15 jake.logger.log('Done.');
e002485 @mde Added task for generating API docs.
mde authored
16 complete();
17 });
18 }, {async: true});
19
20 task('clobber', function () {
21 var cmd = 'rm -fr ./doc/*';
22 jake.exec([cmd], function () {
23c045d Implemented --quiet flag.
mde authored
23 jake.logger.log('Clobbered old docs.');
e002485 @mde Added task for generating API docs.
mde authored
24 complete();
25 });
26 }, {async: true});
27
28 });
29
30 desc('Generate docs for Jake');
31 task('doc', ['doc:generate']);
32
97eeeff @mde Use package name, not name of generator-task.
mde authored
33 var p = new jake.NpmPublishTask('jake', [
34 'Makefile'
35 , 'Jakefile'
36 , 'README.md'
37 , 'package.json'
df6b38c Issue #115 Sort out the mess that is recursion in PackageTask
mde authored
38 , 'lib/**'
39 , 'bin/**'
0cd822d 'tests' should be 'test' directory
mde authored
40 , 'test/**'
97eeeff @mde Use package name, not name of generator-task.
mde authored
41 ]);
35ab8b1 Added Jakefile for packaging.
mde authored
42
43
Something went wrong with that request. Please try again.