grunt plugin for https://github.com/davidchambers/doctest
npm install grunt-doctest> Run doctest from grunt
^0.4.0If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
``shell`
npm install grunt-doctest --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
`js`
grunt.loadNpmTasks('grunt-doctest');
command._Task targets, files and options may be specified according to the grunt Configuring tasks guide.
$3
#### glob
Type:
String {String} Pattern to be matched.
Default: nullSpecify the files you want to run doctests on.
#### module
Type:
String {commonjs | amd}
Default: commonjsThe module system your project is using.
$3
#### Basic configuration
This configuration will run doctests on the javascript files in the test and tasks folders, even in subfolders.
`js
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
doctest: {
test: {
options: {
module: 'commonjs',
glob: '{test//.js,tasks//.js}'
}
}
}`` * 2014-06-06 v1.0.0 First official release of grunt-doctest.
---
Task submitted by Paolo del Mundo