yui/shifter — pull request #48 by aversini (2012-11-29 21:31:13+00:00)
Title: Making the regex to be either global (.shifter.json) or local (build.json)

We have the following need in our project: Add `/*@DBG*/`, or similar, to remove debug only code from all built files except *-debug.js. For example the following lines would be removed from the .min.js files:
```if (foo) { /*@DBG*/
throw ''; /*@DBG*/
} /*@DBG*/
```
That's exactly what the option 'regex' does with `Y.log` already. Unfortunately it's at the "builds" object level only, defined in build.json file for each module.

My changes allow to define 'regex' in the .shifter.json file, and it is applies to all submodules that Shifter "walks into".

To keep the behavior consistent with what's currently existing, if 'regex' is defined in both build.json and .shifter.json, the one in build.json takes precedence.

Let me know if that's something that you would consider pulling back into Shifter...
Thanks!