So, my first thought was to put a soft link in the demo's js directory that points to the "master" directory of my files. This lets my src attributes look like "js/os/hibiscus.js" or "js/os/hibiscus-views.js", etc. (FYI, Hibiscus is a thin MVC layer that sits on top of jQuery.) The problem is now that I have the softlinked js/os directory IDEA thinks there are two copies of the open-source files, even though both copies are actually the same file. Here's what my directory structure looks like. Each of the first-level children corresponds to a module in my project, the open-source files and the demo files.
os --> a soft link to root/open-source
For now I'm excluding the os directory from the demo module. IDEA only sees one copy of the .js files but my HTML files have multiple warnings for unresolved src attributes (of the form src="js/os/hibiscus.js", etc.). Any other ideas on how to structure project like this so I don't get duplicate files and IDEA can follow relative file paths?
OS X Snow Leopard