Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't make source a required argument #87

Closed
caseyhoward opened this issue May 22, 2014 · 3 comments
Closed

Don't make source a required argument #87

caseyhoward opened this issue May 22, 2014 · 3 comments

Comments

@caseyhoward
Copy link

Why do I have to provide a 'src' argument when there is already an option for a configuration file where you can specify source files? I want all my configuration in the configuration file, but I have to put this one bit of configuration in my Gruntfile.

I want to be able to either run jsdoc through grunt or on its own, but that is impossible with how grunt-jsdoc currently works. If I specify my source files in my jsdoc config file I get duplicates when I run jsdoc through grunt since it already has source files.

@krampstudio krampstudio modified the milestone: 0.5 May 26, 2014
krampstudio added a commit that referenced this issue Jun 19, 2014
@krampstudio
Copy link
Owner

Please test with 0.5.6

@storjarn
Copy link

same with dest, i'd imagine, although you can use grunt to load your conf file:

jsdoc : {
        dist : {
            src : grunt.file.readJSON('jsdoc.conf').source.include,
            dest: grunt.file.readJSON('jsdoc.conf').opts.destination,
            options: {
                // configure: './jsdoc.conf'
                template: grunt.file.readJSON('jsdoc.conf').opts.template
            }
        }
    }

@krampstudio
Copy link
Owner

as from 1.1.0 also dest becomes optional when a config file is set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants