Settings

Theme

Tackle Complexity in Typescript apps with TSMC

theblacksmithhq.com

4 points by svallory 12 years ago · 2 comments · 1 min read

Reader

TSMC allows you to configure the modules and submodules (as well as their inner dependencies) you want to get out of your library/app and compile them giving you separately packaged modules and submodules.

Let's say you have a modals module, inside your ui namespace which is one of many namespaces inside your awesomejs lib. Driven by your config, tsmc will give you a awesomejs-ui-modals.js, an awesomejs-ui.js (which contains everything inside ui, including modals) and a awesomejs.js (which includes ui and everything else). For each package it will also give you a declaration (.d.ts) file and a sourcemap (.js.map) file. AFAIK, this is the best way available to have your source code compiled into a big combine package as well as fine grained modules.

svalloryOP 12 years ago

Cool @paf31, please let me know how it goes!

paf31 12 years ago

Neat! I'll try this out today.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection