-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathverbfile.js
More file actions
30 lines (24 loc) · 710 Bytes
/
Copy pathverbfile.js
File metadata and controls
30 lines (24 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
'use strict';
var path = require('path');
var util = require('util');
var verb = require('verb');
var plugin = require('./support/plugins');
verb.helper('utils_methods', function (fp) {
var obj = require(path.resolve(process.cwd(), fp));
return util.inspect(obj, null, 10);
});
verb.task('readme', function () {
return verb.src(['.verb.md', 'docs/*.md'])
.pipe(verb.dest('.'));
});
verb.task('names', function () {
return verb.src(['lib/**/*.js'])
.pipe(plugin.names())
.pipe(verb.dest('lib/'));
});
verb.task('modularize', function () {
return verb.src(['lib/string/index.js'])
.pipe(plugin.modularize())
.pipe(verb.dest('lib/temp'));
});
verb.task('default', ['readme']);