/tsfoo

TypeScript + RequireJS sample configuration

Primary LanguageJavaScript

tsfoo

TypeScript + RequireJS sample configuration

Introduction

https://github.com/microsoft/typeScript/wiki/Modules

Configurations

1. Modules are dynamically loaded by RequireJS

If you build the project in Visual Studio or run grunt without parameters, you'll have the compiled JS in the compiled folder. Open default.htm in the browser to see this configuration in action.

2. Modules are combined into one file and loaded by RequireJS

grunt rjs

Open rjs.htm in the browser to see this configuration in action.

3. Stand-alone one-file bundle (uses Almond)

grunt almond

Open almond.htm in the browser to see this configuration in action.

See also

Related open issues: