Examlpes for the various ways of using fluss in your project. The following variants are covered
- Browser
- AMD, requirejs, Javascript
- AMD, requirejs, Typescript
- CommonJS, browserify, Typescipt. Includes gulp-task for compilation and bundling.
- CommonJS, browserify, JavaScript. Includes gulp-task for bundling.
- Node
- Typescript
- JavaScript
If you find better ways to do this, especially the CommonJS-Typescript variants, please let me know.
Clone this to your local drive.
git clone git://github.com/drawable/fluss-npm-module-usage.git
Install dependencies
npm install
bower install
Gulp needs to be installed globally. To build the Typescript examples you'll need Typescript installed of course.
Build everything
gulp