Skip to content

namuol/gulp-cod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-cod Build Status Module Version Dependency Status

gulp plugin for cod

usage

var gulp = require('gulp'),
    cod = require('gulp-cod');

gulp.task('cod', function () {
  gulp.src('src/*.js')
  .pipe(cod())
  .pipe(gulp.dest('./docs'));
});
var gulp = require('gulp'),
    cod = require('gulp-cod');

gulp.task('cod', function () {
  gulp.src('src/*.coffee')
  .pipe(cod({
    docBegin: '###*',
    docEnd: '###',
    pretty: false
  }))
  .pipe(gulp.dest('./docs'));
});

A .json file will be created for each input source file.

If you want to combine multiple input files into a single API doc file, use gulp-concat:

var gulp = require('gulp'),
    concat = require('gulp-concat'),
    cod = require('gulp-cod');

gulp.task('cod', function () {
  gulp.src('src/*.js')
  .pipe(concat('all.js'))
  .pipe(cod())
  .pipe(gulp.dest('./docs'));
});

install

npm install gulp-cod --save

license

MIT


Analytics