0

I want to add the -p flag in order to generate documentation for private methods using grunt-jsdoc. How can I do that?

According to the documentation at grunt-jsdoc they state that we can use any of the options specified in the useJsDocCli, however do not know how they should be specified in the grunt task. Here is my current grunt task:

jsdoc : {
            dist : {
                src: ['app/scripts/directives/*.js','README.md'],
                options: {
                    destination: 'doc'
                }
            }
        }

How can I specify that I want the task to run with the -p flag (or any other flags)?

John
  • 10,165
  • 5
  • 55
  • 71

1 Answers1

1

There's an example in the documentation under the template section https://github.com/krampstudio/grunt-jsdoc#templates

Just use the flag name without the dash, for example:

dist : {
    src: ['app/scripts/directives/*.js','README.md'],
        options: {
          destination: 'doc',
          private: true
        }
    }
}
krampstudio
  • 3,519
  • 2
  • 43
  • 63