Skip to content

Commit c62f1e2

Browse files
author
Sean Kennedy
committed
clean up debugging comments; increment release number
1 parent a856d65 commit c62f1e2

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# gulp-task-list changelog
22

3+
## 0.0.2
4+
5+
* Some bug fixing ... the whole "comment-as-description" algorithm needs attention
6+
37
## 0.0.1
48

59
* Fork!

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ gulp-task-list is a [gulp](http://gulpjs.com) task that lists all tasks in gulpf
55
Comments are the single line of comment text immediately before the `gulp.task` call.
66
Only tasks defined by a direct call to `gulp.task` with the task name a litteral string, will have their documentation shown.
77

8+
This is still in need of major improvement ... if you choose to use it, good luck and send me your pull requests!
89

9-
## gulpfile.js
10+
## Usage
1011

1112
```javascript
1213

@@ -25,7 +26,7 @@ Only tasks defined by a direct call to `gulp.task` with the task name a litteral
2526
});
2627
```
2728

28-
### results
29+
### Results
2930

3031
$ gulp task-list
3132

example/gulpfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* someday this maybe should be tests ... */
22
var gulp = require('gulp');
33

4+
//require('gulp-task-list')(gulp);
45
require('../index.js')(gulp);
56

67
// This is a comment

index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ var clitable = require('cli-table');
77
module.exports = function(gulp) {
88
gulp.task('task-list', function() {
99
var gulpfile = fs.readFileSync('gulpfile.js').toString();
10-
console.log(gulpfile);
11-
console.log(gulp.tasks);
1210
var table = new clitable({
1311
head: ['Task Name', 'Description', 'Dependencies'],
1412
chars: {
@@ -26,15 +24,13 @@ module.exports = function(gulp) {
2624
}
2725
start = gulpfile.lastIndexOf("//", gulpfile.indexOf(gulptask));
2826
end = gulpfile.indexOf('\n', start);
29-
console.log(gulptask, start, end, gulpfile.indexOf(gulptask), gulptask);
3027
if (start !== -1 && end !== -1) {
3128
start += 2;
3229
comment = gulpfile.substring(start, end);
3330
} else {
3431
comment = "";
3532
}
3633
deps = gulp.tasks[gulptask].dep.join(", ");
37-
3834
table.push([gulptask, comment, deps]);
3935
}
4036
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gulp-task-list",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "Lists gulp tasks and their comments (even if they've been `require-dir`'d)",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)