Vertafore/docular

Newer NodeJS Support (v4.x)

nhorvath opened this issue · 1 comments

I had to upgrade my node but now docular is broken. Any chance that newer versions of Node will be supported?

Using 4.2.1 I get this error if I include anything in my group's documentation (removing everything finishes file).
Error: EISDIR: illegal operation on a directory, read
at Error (native)
From previous event:
at Class.extend.loadFiles (...project path.../node_modules/docular/lib/scripts/core/group.js:152:18)
at node.js:961:3
{ [Error: EISDIR: illegal operation on a directory, read] errno: -21, code: 'EISDIR', syscall: 'read' }

I want to post a workaround for anyone who comes across this:

                    sections: [
                        {
                            id: "myapi",
                            title: "Project API",
                            scripts: grunt.file.expand({}, userConfig.app_files.js),
                            docs: [
                            ],
                            rank : {}
                        }
                    ]

userConfig.app_files.js is a list of file glob patterns that match all my angular js files that I already used to concatenate and and minify elsewhere in the build. The important thing is you don't pass any directories to docular or it tries to read them like a file and blows up.