peterflynn/quick-import — pull request #1 by ganmor (2013-11-03 18:17:19+00:00)
Title: Handle pure AMD syntax

Before the insertion, it will try to determine the syntax of the file.
If it has already an array of import using pure amd syntax, it will be added to it.

``` define([..,..,..] ```

Otherwise it will work the same as it used to.

Caveats
- Still assume base folder name
- Only works if import array is not empty
- Unit tests are still incomplete.

There are still some todos that I have not had time to tackle.
- Check compliance of the variable that is used as module name, remove dash for example
- Check for duplicates imports and duplicates variable name
- Handle empty import array ( ``` define([], function( ) ``` )

I am happy to here remarks and push an updated version