Template helper for automatically generating API docs from code comments. This is based on helper-apidocs, but specifically for applications built-with the Template library.
I am trying to use template-helper-apidocs in gulp-verb, but failing. Always get the following error:
[13:36:54] Using gulpfile D:\Projects\%projectname%\gulpfile.js
[13:36:54] Starting 'verb'...
[13:36:54] 'verb' errored after 287 ms
[13:36:54] ReferenceError in plugin 'gulp-verb'
apidocs is not defined
My code:
'use strict';
var gulp = require( 'gulp' );
var gulpVerb = require('gulp-verb');
var template = require('template')();
template.helper('apidocs', require('template-helper-apidocs'));
gulp.task( 'verb', function () {
gulp.src( './.verb.md')
.pipe( gulpVerb( {dest: './README.md'}))
.pipe( gulp.dest( './'));
});
Hi,
I am trying to use template-helper-apidocs in gulp-verb, but failing. Always get the following error:
My code:
Any ideas? Regards Stefan