Putting a directory into any of the directories `controllers`, `libraries`, `helpers`, `models` causes boot function to crash #4

Open
chetan51 opened this Issue Oct 7, 2010 · 3 comments

2 participants

@chetan51
Owner

If the file structure is:

libraries
    downloader.js
    external
        readability.js

The following should work:

Ni.libraries.downloader
Ni.libraries.external.readability
@houmanb

I had a rather similar issue with our own sources checked out from a svn server.
Subversion generates directories named ".svn" in each subdirectory.
I've found a dirty workaround for me:
In "ni/lib/ni.js" line: 465 I've added:

if (! /~$/.test(file) && file!='.svn') {......

@chetan51
Owner

Do you mind making a more general "ignore paths" solution, including ".git" folders and such, and sending a pull request? Thanks!

@houmanb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment