# TypeScript Marionette Todo App

Todo app written in TypeScript and using Marionette. Created to learn about combining these two technologies and the latest build tools. Heavily inspired by TodoMVC, but diverging from that project, especially by using Bootstrap instead of the default markup and CSS.

## Set Up

    npm install

## Run

Use `npm run` commands.

`npm run lint` does not yet work. Install tslint globally and run the command manually.

## Notes

* backbone-global definition types file is required by Marionette.
* The Marionette definition file was apparently updated to exported as "backbone.marionette" instead of just "marionette".

### Updates required to type definition files

typings/global/backbone.localstorage/index.d.ts

    declare module "backbone.localstorage" {
      export = Backbone.LocalStorage;
    }

# TypeScript Marionette Todo App

Todo app written in TypeScript and using Marionette. Created to learn about combining these two technologies and the latest build tools. Heavily inspired by TodoMVC, but diverging from that project, especially by using Bootstrap instead of the default markup and CSS.

## Set Up

    npm install

## Run

Use `npm run` commands.

`npm run lint` does not yet work. Install tslint globally and run the command manually.

## Notes

backbone-global definition types file is required by Marionette.

The Marionette definition file was apparently updated to exported as "backbone.marionette" instead of just "marionette".

The raison d'être for Backbone's Model classes is to be able to watch for changes, kinda like Knockout's observables. A collection is needed when the system needs to be able to detect changes made in a list of things. If the list of things doesn't change dynamically, there is no need to use a Backbone Collection - an array will do fine.

### Updates required to type definition files

typings/global/backbone.localstorage/index.d.ts

    declare module "backbone.localstorage" {
      export = Backbone.LocalStorage;
    }

Add into on models and collections
Add into on models and collections
