mobify/mobifyjs — pull request #237 by rrjamie (2013-12-19 18:47:48+00:00)
Title: New Tag - Initial Work

New Tag

This is some initial work on the new tag. This is a rewrite from the start, however, I haven't tested it with any builds. I'm trying to get a nice clean interface, and a testable setup.

I see three stages to the new tag:

1) Write a new tag, and review if we like the interface. (This Stage)

I really want feedback here on the interface, since I moved away from the "detector" function.

2) Make it compatible with MPS/1.1.

3) Make it small.

Feedback on (2) and (3) is cool too, but only really if decisions in (1) make stuff really difficult in (2) and (3).

**Status**: *Review*

**Reviewers**: @jansepar (optionally @noahadams @tedtate)
**JIRA**: PROD-778, PROD-1040

## Changes
- Completely new tag, written in parallel with tests.
- Includes all features (I think)
- Capturing based on device (or mode)
- Loading a script based on device (or mode)
- Loading preview
- Unmobify via Reload
- Made to be testable.
-
- Not yet tested with actual builds, looking for feedback on design and interface (the `options` object)

## How to test-drive this PR
- There are tests
- Read the code. Complain. Rinse. Rather. Repeat.