classdojo/amdify.js — pull request #12 by Vimos (2014-07-24 02:34:29+00:00)
Title: filter comments when search for 'require'

Hi,
I am new to nodejs.
Recently, I am using nexe as a compiler to bin. (nexe requires sardines, sardines requires amdify, that's why I am here in this repo)
I find two problems that
1. amdify::getRequired scans comments for require, which may cause problems
2. amdify::getRequired may need to consider the following conditional require
module.exports = process.env.EXPRESS_COV
? require('./lib-cov/express')
: require('./lib/express');
which sometimes may cause problems

Now, I tried to solve problem 1. problem 2 is TODO

I am not still sure about these, just post for comments
Thank you
Vimos