Tony/move unknown filetypes

@igorT Copies unknown file types (erb, coffee, etc) to nonjs folder, but also keeps relative folder naming. This should make it easier to port those files.
Haha. I already fixed it. So I think we should go with my fix unless you
see a problem with it.
On Mon, Dec 29, 2014 at 12:08 PM Igor Terzic <notifications@github.com>
wrote:

> In lib/ember-migrator.js
> <https://github.com/fivetanley/ember-cli-migrator/pull/20#discussion-diff-22326420>
> :
>
> > +  var copyFile = function (destSubDir, file) {
> > +    var fullPath = path.join(self.inputDirectory, file);
> > +    var outputFile;
> > +    if (destSubDir) {
> > +      var destFileWithSubDir = path.join(destSubDir, path.basename(file));
> > +      outputFile = path.join(self.outputDirectory, self.appName, destFileWithSubDir);
> > +    } else {
> > +      outputFile = path.join(self.outputDirectory, self.appName, 'nonjs', file);
> > +    }
> > +    var outputFolder = path.dirname(outputFile);
> > +    console.log('copying nonjs file', outputFile);
> > +    mkdirp.sync(outputFolder);
> > +    fs.writeFileSync(outputFile, fs.readFileSync(fullPath));
> > +  };
> > +
> > +  hbsFiles.forEach(copyFile.bind(this, 'templates'));
>
> I was thinking about that as well. Seems good to remove it
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/fivetanley/ember-cli-migrator/pull/20/files#r22326420>
> .
>