jrburke/r.js — Issue #88: r.js issue when name and out are set and the out directory is empty
Author: aberman
Created: 2012-01-27 01:17:13+00:00
State: open

Steps to reproduce:

1. Create build file to include the following options: dir, name, out
2. Empty or erase the directory specified by dir
3. Have a simple sample application which requires other js files
4. Run build script using r.js

Result: r.js errors out telling you that it cannot find a js file in the directory specified by the dir option instead of the appDir attribute.

For example, if dir is set to public, I get an error telling me:

Error: Error: Error evaluating module "undefined" at location "/Users/xxxxxx/Documents/workspace/foo/public/scripts/lib/noamd/ember-0.9.4.js"

Expected result:

If you change the build config file to use modules instead of name and out it works as expected using the appDir/baseUrl to find js files. The public dir is created and all proper files are created.