Moncader/JSWorkBench — pull request #2 by kuu (2012-10-04 13:21:06+00:00)
Title: [Request for Review] Changes needed to build multiple targets

[Issue]
In build.json file, user can describe dependency using the 'targets' property in 'resources' section.
However, we don't have any way to avoid redundancy in the files to build.

[Cause]
Current implementation performs the 'build' action whenever a 'targets' property is found.
However, the output of 'build' action is a single file containing 'binary' (minified JS).
Then, the binary files generated by the targets are concatenated into a single file, there's no concept of removing redundancy.

[Fix]
Added 'merge' action which outputs a list of files, not a binary.
And, also added a logic to remove redundancy at the end of the build action.