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

in .groc.json, groc takes the first directory listed in "glob" array and dumps its contents into the "out" folder, instead of just dumping the directory itself #163

Open
dannycochran opened this issue May 17, 2014 · 2 comments

Comments

@dannycochran
Copy link

On node v.0.10.28 and groc 0.6.3.

Let's say you have a .groc.json that looks like this:

{
  "glob": ["README.md", "app/**/*.js", "otherapp/**/*.js"],
  "out": "docs"
}

And in both the "app" and "otherapp" directories, there are subdirectories "models, views, helpers."

The outputted docs directory will look like this:

  • index.html [generated by groc]
  • assets [generated by groc]
  • models
  • views
  • helpers
  • otherapp

So groc is dumping the contents of the first directory it finds in the "glob" array into docs, instead of the entire directory with its contents. otherapp gets put in there just fine, though. This screws up the Table of Contents structure in the UI.

@dannycochran
Copy link
Author

for anyone encountering the same problem, a workaround is putting a non-existent directory as the first directory in the "glob" array like so:

{
  "glob": ["README.md", "fake/*.js", "app/**/*.js", "otherapp/**/*.js"],
  "out: "docs"
}

@despairblue
Copy link

👍

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

No branches or pull requests

2 participants