Skip to content
This repository
Newer
Older
100644 49 lines (40 sloc) 1.044 kb
65c610c1 »
2012-05-20 Updated jake:test task to run all tests in dir.
1 var fs = require('fs')
2 , path = require('path');
35ab8b11 »
2011-06-29 Added Jakefile for packaging.
3
92500001 »
2013-07-19 Update Jakefile to use new API methods
4 testTask('Jake', function () {
0cd822d5 »
2012-07-23 'tests' should be 'test' directory
5 this.testFiles.include('test/*.js');
6 this.testFiles.exclude('test/helpers.js');
cbbaf593 »
2012-06-23 Converted tests to TestTask.
7 });
434d81d7 »
2011-12-10 Get started on sorting out tests.
8
e0024854 »
2012-02-14 Added task for generating API docs.
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';
23c045d3 »
2012-06-09 Implemented --quiet flag.
13 jake.logger.log('Generating docs ...');
e0024854 »
2012-02-14 Added task for generating API docs.
14 jake.exec([cmd], function () {
23c045d3 »
2012-06-09 Implemented --quiet flag.
15 jake.logger.log('Done.');
e0024854 »
2012-02-14 Added task for generating API docs.
16 complete();
17 });
18 }, {async: true});
19
20 task('clobber', function () {
21 var cmd = 'rm -fr ./doc/*';
22 jake.exec([cmd], function () {
23c045d3 »
2012-06-09 Implemented --quiet flag.
23 jake.logger.log('Clobbered old docs.');
e0024854 »
2012-02-14 Added task for generating API docs.
24 complete();
25 });
26 }, {async: true});
27
28 });
29
30 desc('Generate docs for Jake');
31 task('doc', ['doc:generate']);
32
7593f13d »
2013-07-20 Use newer API for NpmPublishTask
33 npmPublishTask('jake', function () {
34 this.packageFiles.include([
35 'Makefile'
36 , 'Jakefile'
37 , 'README.md'
38 , 'package.json'
585dad6b »
2013-07-20 Changed glob syntax
39 , 'lib/**'
40 , 'bin/**'
41 , 'test/**'
7593f13d »
2013-07-20 Use newer API for NpmPublishTask
42 ]);
43 this.packageFiles.exclude([
44 'test/tmp'
45 ]);
46 });
35ab8b11 »
2011-06-29 Added Jakefile for packaging.
47
48
Something went wrong with that request. Please try again.