transform ejs templates to js
concat tg project tpl
fork from amd-optimize, update it to support babel