jrburke/r.js — pull request #118 by millermedeiros (2012-02-24 04:42:04+00:00)
Title: Add warning "[*]" next to modules present on other build targets

Helps to identify duplicates and files that can be merged together and/or
excluded from builds, check is based only on content present on the build.txt
file and uses a simple test to check if same line is present more than once in
the same file, may give false positives depending on path settings but it can
save a lot of time depending on the project structure.

Here is an example from my current project (not the full log tho):

```
js/main.js
----------------
js/lib/jquery/jquery.js [*]
js/core/settings.js [*]
js/lib/signals.js [*]
js/lib/hasher.js
js/lib/crossroads.js
js/lib/CompoundSignal.js
js/lib/amd-utils/string/makePath.js [*]
js/lib/amd-utils/lang/ctorApply.js
js/lib/millermedeiros/other/sectionController.js
js/lib/millermedeiros/other/sectionController2.js
js/lib/amd-utils/array/some.js [*]
js/core/sectionController.js
js/lib/amd-utils/math/clamp.js [*]
js/lib/amd-utils/number/toUInt.js [*]
js/lib/amd-utils/string/upperCase.js [*]
js/lib/amd-utils/string/replaceAccents.js [*]
js/lib/amd-utils/string/removeNonWord.js [*]
js/lib/amd-utils/string/lowerCase.js [*]
js/lib/amd-utils/string/camelCase.js [*]
js/lib/amd-utils/string/pascalCase.js [*]
js/lib/amd-utils/string/trim.js [*]
js/lib/amd-utils/string/toSlug.js [*]
js/lib/amd-utils/string/unCamelCase.js [*]
js/lib/amd-utils/string/hyphenate.js [*]
js/lib/millermedeiros/browser/vendorPrefix.js [*]
js/lib/millermedeiros/browser/animFrame.js [*]
js/lib/millermedeiros/other/SpriteAnim.js [*]
js/lib/require/text.js [*]
js/lib/require/json.js
json!sprites/intro/loading.json
js/lib/require/image.js
image!sprites/intro/loading.png!rel
js/core/ui/loading.js
js/lib/amd-utils/lang/isUndefined.js [*]
js/lib/amd-utils/object/get.js [*]
js/lib/amd-utils/object/has.js [*]
js/lib/Handlebars.js [*]
js/lib/require/hbs/underscore.js [*]
js/lib/require/hbs/json2.js [*]
js/lib/require/hbs.js [*]
hbs!core/ui/templates/progressBar
hbs!core/ui/templates/preliminaryPrevNextNav
js/lib/amd-utils/array/forEach.js [*]
js/lib/amd-utils/array/filter.js [*]
hbs!core/ui/templates/refineNav
hbs!core/ui/templates/refinePrevNextNav
hbs!core/ui/templates/moneyTicker
js/lib/amd-utils/math/countSteps.js [*]
js/lib/amd-utils/math/snap.js [*]
js/lib/amd-utils/number/currencyFormat.js [*]
js/lib/jquery/throttle-debounce.js [*]
js/lib/millermedeiros/events/SignalEmitter.js [*]
js/core/coreModel.js [*]
js/core/ui/btnActionController.js
js/core/ui/bindingHelper.js
js/core/l10n.js [*]
js/core/uiModel.js
js/core/ui/preliminaryNav.js
js/core/ui/toggleLanguage.js
js/lib/amd-utils/array/reduce.js [*]
js/lib/amd-utils/array/indexOf.js [*]
js/lib/amd-utils/array/unique.js [*]
js/lib/amd-utils/array/contains.js [*]
js/lib/amd-utils/array/difference.js [*]
js/lib/amd-utils/lang/kindOf.js [*]
js/lib/amd-utils/lang/isKind.js [*]
js/lib/amd-utils/lang/isObject.js [*]
js/lib/amd-utils/object/hasOwn.js [*]
js/lib/amd-utils/object/forOwn.js [*]
js/lib/amd-utils/object/keys.js [*]
js/lib/amd-utils/financial/npv.js [*]
js/lib/amd-utils/financial/futureValue.js [*]
js/lib/amd-utils/math/inRange.js [*]
js/core/calculator.js [*]
js/core/ui/refineNav.js
js/core/ui.js
js/sections/sectionsDescriptor.js
js/debug/sectionLogger.js
hbs!debug/templates/debugNav
js/debug/debugNav.js
js/main.js [*]

js/sections/results/finalAnalysis/main.js
----------------
js/lib/signals.js [*]
js/lib/millermedeiros/events/SignalEmitter.js [*]
js/core/coreModel.js [*]
js/lib/jquery/jquery.js [*]
js/lib/amd-utils/math/clamp.js [*]
js/lib/amd-utils/number/toUInt.js [*]
js/lib/amd-utils/string/upperCase.js [*]
js/lib/amd-utils/string/replaceAccents.js [*]
js/lib/amd-utils/string/removeNonWord.js [*]
js/lib/amd-utils/string/lowerCase.js [*]
js/lib/amd-utils/string/camelCase.js [*]
js/lib/amd-utils/string/pascalCase.js [*]
js/lib/amd-utils/string/trim.js [*]
js/lib/amd-utils/string/toSlug.js [*]
js/lib/amd-utils/string/unCamelCase.js [*]
js/lib/amd-utils/string/hyphenate.js [*]
js/lib/millermedeiros/browser/vendorPrefix.js [*]
js/lib/millermedeiros/browser/animFrame.js [*]
js/lib/millermedeiros/other/SpriteAnim.js [*]
js/core/settings.js [*]
js/lib/millermedeiros/other/ImageLoaderQueue.js
js/lib/amd-utils/lang/isUndefined.js [*]
js/lib/amd-utils/object/get.js [*]
js/lib/amd-utils/object/has.js [*]
js/core/l10n.js [*]
js/lib/jquery/mousewheel.js
js/widgets/ScrollSlider.js
js/lib/amd-utils/string/makePath.js [*]
js/core/assetsPreloader.js
js/lib/Handlebars.js [*]
js/lib/require/hbs/underscore.js [*]
js/lib/require/hbs/json2.js [*]
js/lib/require/hbs.js [*]
hbs!sections/results/finalAnalysis/template
hbs!widgets/templates/InfoBox
js/widgets/InfoBox.js
js/sections/abstract/AbstractSection.js
js/lib/amd-utils/number/currencyFormat.js [*]
js/lib/amd-utils/math/lerp.js
js/lib/amd-utils/math/norm.js
js/lib/amd-utils/math/map.js
js/lib/amd-utils/math/countSteps.js [*]
js/lib/amd-utils/array/range.js
js/lib/amd-utils/math/snap.js [*]
js/sections/results/finalAnalysis/chartCanvas.js
js/lib/shifty.js
js/lib/amd-utils/array/forEach.js [*]
js/lib/amd-utils/array/map.js
js/lib/amd-utils/array/reduce.js [*]
js/lib/amd-utils/array/indexOf.js [*]
js/lib/amd-utils/array/filter.js [*]
js/lib/amd-utils/array/unique.js [*]
js/lib/amd-utils/array/some.js [*]
js/lib/amd-utils/array/contains.js [*]
js/lib/amd-utils/array/difference.js [*]
js/lib/amd-utils/lang/kindOf.js [*]
js/lib/amd-utils/lang/isKind.js [*]
js/lib/amd-utils/lang/isObject.js [*]
js/lib/amd-utils/object/hasOwn.js [*]
js/lib/amd-utils/object/forOwn.js [*]
js/lib/amd-utils/object/keys.js [*]
js/lib/amd-utils/financial/npv.js [*]
js/lib/amd-utils/financial/futureValue.js [*]
js/lib/amd-utils/math/inRange.js [*]
js/core/calculator.js [*]
js/lib/flashcanvas.js
js/sections/results/finalAnalysis/incomeChart.js
js/sections/results/finalAnalysis/assetsChart.js
js/lib/amd-utils/number/MIN_INT.js
js/lib/amd-utils/number/MAX_INT.js
js/lib/amd-utils/number/toInt.js
js/lib/amd-utils/random/rand.js
js/lib/amd-utils/random/randInt.js
js/lib/amd-utils/array/shuffle.js
js/lib/amd-utils/lang/isArray.js
js/lib/amd-utils/random/choice.js
hbs!sections/results/finalAnalysis/bubbles
js/lib/amd-utils/number/enforcePrecision.js
js/sections/results/finalAnalysis/incrementController.js
js/sections/results/finalAnalysis/tooltipController.js
js/lib/require/text.js [*]
js/lib/Markdown.Converter.js
js/lib/require/mdown.js
mdown!sections/results/finalAnalysis/more_info.md
mdown!sections/results/finalAnalysis/bubbles/debt.md
mdown!sections/results/finalAnalysis/bubbles/economy.md
mdown!sections/results/finalAnalysis/bubbles/income.md
mdown!sections/results/finalAnalysis/bubbles/inflation.md
mdown!sections/results/finalAnalysis/bubbles/intro.md
js/sections/results/finalAnalysis/thoughtBubbleModel.js
js/sections/results/finalAnalysis/thoughtBubble.js
js/lib/jquery/throttle-debounce.js [*]
js/sections/results/finalAnalysis/main.js [*]
```

see #110