Getting Started with the Standalone Library

To use Foundation as a standalone library, you must first install the TypeScript compiler. Version 1.8.10 or above is recommended (this is the version used for development). The easiest way to install the TypeScript compiler is by using NPM. Open a terminal / console and run:

npm install -g typescript@">=1.8.10"

Next, download the latest tagged version of Foundation and extract the downloaded archive to a location of your choice. Open a terminal / console in the foundation/core directory and run:


The compiled code (.js and .d.ts files) will be available in the foundation/core/_compiled directory. The JavaScript file can be used for your production code, and the definition file can be included in your TypeScript files. Please note that the JavaScript file is not minified, you'll have to take care of that yourself. You can minify the code using the JavaScript Closure Compiler (online service / npm install) with SIMPLE_OPTIMIZATIONS.

Using the TypeScript Standalone library

@TODO Documentation pending. While you're waiting, and if you're feeling adventurous, you could take a look at the tool chain project templates in the foundation/.projectTemplates directory. You can ignore the project.json file, but everything else will give you an idea of how you might go about starting a new Foundation project from scratch when using as a standalone library.