Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gulp-groc with all npm packages installed. Try it out:

var gulpGroc = require("gulp-groc")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gulp-groc v0.4.1

A simple gulp plug-in to generate a project's documentation using Groc

gulp-groc

NPM version Build Status Coverage Status Dependency Status Livereload downloads MIT Licensed

groc plugin for gulp

Usage

First, install gulp-groc as a development dependency:

npm install --save-dev gulp-groc

Then, add it to your gulpfile.js:

var gulp = require('gulp'),
    groc = require("gulp-groc"),
    clean = require('gulp-clean');

// clean doc
gulp.task('cleanDoc', function () {
    return gulp
        .src([ 'jsdoc' ], {
            read: false
        })
        .pipe(clean());
});

// gulp-groc
gulp.task('doc', [ 'cleanDoc' ], function () {
    return gulp
        .src("./src/scripts/**/*.js")
        .pipe(groc({
            out: 'jsdoc'
        }));
});

API

groc(options)

options

Type: Object Default: {}

There are options supported by groc, if you are interested.

License

MIT License

Copyright (c) 2014 NAVER Corp.

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free