I have a project with a large amount of ts files. At the moment we compile all of these into one js file and just load that one js file in our HTML. This file is guaranteed to have all the source in the correct order (if we have our references correct anyway) and means we only have to make 1 request over the wire.

To ease development I am considering changing our compile method to compile each TS file to a single js file. This will make compilation essentially instant and will make coverage reports better for example and will allow for file watchers to instantly run tests and so on. For the released version we would still use the single compiled js file though.

The major pain point with this approach though is maintaining the list of js files to be loaded into our HTML page and making sure that they are in the correct order. Is there a way of generating this list automatically?

Thanks

0

There are 0 best solutions below