Closed
Description
Taking up issues #4225 and #4434 I like to propose that it should be possible to create groups of bundles within a project.
A project commonly consists of files constituting the task to accomplish (i.e. the "library" to create), a number of test cases and other supporting files.
Concatenating them all into a single file would not be the intention of the programmer.
Hence, I'd like to propose to add an optional parameter to the --bundle
option allowing for selectively adding branches of the project to the generated file.
The suggested format is a JSON array, allowing for concatenating parts of a project into different JavaScript files.
.
Here's an example of such argument:
[ "./TypeScript/*.ts": "./js/combined.js" // end glob either with wildcard or directory to search for input
, "./Lib/*.ts": "./js/Lib.js" // syntax is: "source file list": "concatenated destination file"
, "./Test/TypeScript": "./Test/js/main.js"
]
... or a more vivid example:
[ "./Angular/**/*.ts": "./out/angular.js"
, "./Animation/**/*.ts": "./out/angular-animate.js"
, "./Aria/**/*.ts": "./out/angular-aria.js"
, "./Cookies/**/*.ts": "./out/angular-cookies.js"
, "./Loader/**/*.ts": "./out/angular-loader.js"
, "./Messages/**/*.ts": "./out/angular-messages.js"
, "./Touch/**/*.ts": "./out/angular-touch.js"
, "./~Test": "./out/Test/main.js"
]