yui / selleck

Mustache-based user documentation generator in Node.js.
http://yui.github.com/selleck/
BSD 3-Clause "New" or "Revised" License
10 stars 10 forks source link

Selleck not working for standalone modules #10

Open juandopazo opened 11 years ago

juandopazo commented 11 years ago

Hi! Selleck works fine when building docs from the YUI source folder, but it fails when trying to do the same from a standalone module. Now that yogi is around and single repos for gallery modules are accepted, Selleck should be able to handle them.

This is the error message I'm getting:

C:\Workspace\gallery\imagecropper>selleck
[info] Parsing components
[info] Generating component docs for C:\Workspace\gallery\imagecropper\docs

C:\Users\Juan Ignacio\AppData\Roaming\npm\node_modules\selleck\bin\selleck:321
        if (err) { throw err; }
                         ^
[object Object]
rgrove commented 11 years ago

Sub-issue: Selleck apparently needs to throw more useful exceptions, because there's no telling WTF is happening here. :(

davglass commented 11 years ago

Under the hood, yogi sets up a project.json file for you. I would bet that this is why it's bailing.