When steal is asked to load a module with no extension (like
"inventory/index", from the command line above), it always expands the
last part as though it were a self-contained module: "inventory/index"
becomes "inventory/index/index.js", "inventory" would become
"inventory/inventory.js", etc.
I think you can get around this by specifying the actual file, instead of something which looks like a module:
If you have a lot of files like this, it might be worth considering rearranging them to fit the "modulename/modulename.js" pattern. We did that with our app -- making each module live in its own directory, and making each directory house only one module (along with any related templates/etc which the module uses) -- and it's worked very well for us. So long as you always specify an extension, though, I think you can put the files wherever you want and it'll work the same way.
I think you can get around this by specifying the actual file, instead of something which looks like a module:
- js steal/buildjs inventory/index.js ignore inventory/cordova-2.2.0.js
If you have a lot of files like this, it might be worth considering rearranging them to fit the "modulename/modulename.js" pattern. We did that with our app -- making each module live in its own directory, and making each directory house only one module (along with any related templates/etc which the module uses) -- and it's worked very well for us. So long as you always specify an extension, though, I think you can put the files wherever you want and it'll work the same way.