helpers / template-helper-apidocs

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.
MIT License
5 stars 1 forks source link

Using template-helper-apidocs in gulp-verb #3

Open stefanwalther opened 9 years ago

stefanwalther commented 9 years ago

Hi,

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( './'));
});

Any ideas? Regards Stefan

jonschlinkert commented 9 years ago

Hmm, I'll take a look and see what I can find