phated/grunt-dojo — pull request #7 by bryanforbes (2013-05-13 18:16:04+00:00)
Title: Dojo config

After talking with Rawld, I have figured out that profile parameters (`--profile` and `--dojoConfig`) are progressively read and added to what the builder sees as the final profile. This means the last profile's parameters win, much like how `dojo/_base/lang.mixin` works. In the case of the `basePath` profile parameter, `--dojoConfig` has an implicit `basePath` property which will override anything set before it.

Currently, this task adds `--dojoConfig` near the end, which will override `basePath` set in the user's `--profile` file. This pull request changes the task to add parameters to the command line in the same order as the user has defined them in their task options. I have also added the `basePath` configuration flag for the builder.