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