Fence your TypeScript
Example project of fencing in your TypeScript using Gulp. This is explained further in the blog post "Fence you TypeScript, for saner projectt boundaries". It goes over leveraging TypeScript path mapping and good-fence to create project boundaries.