aboutsummaryrefslogtreecommitdiff
path: root/build/gulpfile.js
diff options
context:
space:
mode:
authorTomasz Ducin <[email protected]>2015-05-10 20:13:26 +0200
committerTomasz Ducin <[email protected]>2015-05-10 20:13:26 +0200
commit55c729b32dfbd86faa3f0ea3a6698288dd15f303 (patch)
treec778094ae9c568e6ec7f2b842d478c0539e4d845 /build/gulpfile.js
parentc0dc1c49a95c87cece7458c4099429fb7556de6a (diff)
downloadfaker-55c729b32dfbd86faa3f0ea3a6698288dd15f303.tar.xz
faker-55c729b32dfbd86faa3f0ea3a6698288dd15f303.zip
updated readme: sources and generated content #170
Diffstat (limited to 'build/gulpfile.js')
-rw-r--r--build/gulpfile.js13
1 files changed, 4 insertions, 9 deletions
diff --git a/build/gulpfile.js b/build/gulpfile.js
index 9c933d53..3b5c5eb7 100644
--- a/build/gulpfile.js
+++ b/build/gulpfile.js
@@ -52,7 +52,6 @@ gulp.task('browser-package', function() {
.pipe(gulp.dest('build/'))
.pipe(gulp.dest('../examples/browser/js'))
.pipe(rename('../examples/browser/js/faker.min.js'));
-
});
@@ -71,22 +70,18 @@ gulp.task('documentation', function(cb) {
var faker = require('../index');
// generate nice tree of api for docs
- API += '<ul>';
for (var module in faker) {
- API += '<li>' + module;
- API += '<ul>';
+ API += '* ' + module + '\n';
for (var method in faker[module]) {
- API += '<li>' + method + '</li>';
+ API += ' * ' + method + '\n';
}
- API += '</ul>';
- API += '</li>';
}
- API += '</ul>';
return gulp.src('./src/docs.md')
.pipe(mustache({
'API': API,
- 'copyrightYear': new Date().getFullYear()
+ 'startYear': 2010,
+ 'currentYear': new Date().getFullYear()
}))
.pipe(rename("./Readme.md"))
.pipe(gulp.dest('../'))