wq/wq.app — pull request #12 by sheppard (2013-11-07 22:26:47+00:00)
Title: use lib/ as AMD baseUrl

wq.app's third-party dependencies are stored in `lib/`, which in downstream projects becomes `wq/lib/`. However, AMD/RequireJS [best practice] is to use the vendor directory as the `baseUrl` so that third party libraries can be referenced using their common names (`jquery`, `leaflet`, etc) without a messy paths config. (Paths config is avoided in wq.app's case due to the fact that vendored libs are updated to have relative deps).

Fixing this would require moving things around quite a bit. The end state will probably be to have `lib/` at the root level of this repository, with the wq.app js modules stored in `lib/wq`. `wq init` will then link `myproject/js/lib` to `wq.app/lib`, instead of the current `myproject/js/wq` -> `wq.app/js`. This change will make it more awkward to for `myproject` to maintain its own `lib/`. Thus the long term goal is to stop vendoring third party libs in wq.app entirely (#1).

[best practice]: https://github.com/volojs/create-template/tree/master/www/js