0

I'm trying to get grunt-jsdoc-plugin to work, and I'm having a small problem. In my console, I keep getting:

Running "jsdoc:dist" (jsdoc) task
Warning: Cannot read property 'src' of undefined Use --force to continue.

Aborted due to warnings.

In the grunt-jsdoc-plugin documentation, it says:

src : an array of pattern that matches the files to extract the documentation from. You can also add the pattern to a README.md file to include it in your doc as described there.

In my Gruntfile, I have simply written this, thinking that source was a relative file path:

   jsdoc : {
        dist : {
            src: ['/[a-z0-9]+\.[a-z]{2,4}/'], 
            options: {
                destination: 'doc'
            }
        }
    }

Here is the absolute file path of the file in my system if that helps:
C:\Users\myName\Desktop\GruntTut\testdoc2.js

However, this doesn't seem to work, since I'm getting that error. How am I supposed to write this exactly? Thanks much! ~Carpetfizz

Edited by Carpetfizz

2
Contributors
1
Reply
12
Views
4 Years
Discussion Span
Last Post by LastMitch
0

However, this doesn't seem to work, since I'm getting that error. How am I supposed to write this exactly? Thanks much! ~Carpetfizz

Used this:

http://regexpal.com/

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.