charlierudolph / dependency-lint

Lints NPM dependencies and devDependencies
MIT License
14 stars 6 forks source link

add transpilers configuration option #15

Closed charlierudolph closed 8 years ago

charlierudolph commented 8 years ago

@kevgo @alexdavid

This is my attempt at opening up dependency lint to all transpilers. The default is now simply javascript. I tried it out on Originate/exoservice-js (which is livescript) and it worked.

This currently makes assumptions about transpilers exporting a compile function which takes in specific arguments but looking at coffeescript, livescript, and pogoscript (something I was exposed to on cucumber-js), they all follow the pattern. I'd also rather not make it more complicated unless someone want to use some other transpiler.

kevgo commented 8 years ago

:ship: from my end

kevgo commented 8 years ago

Nice option, can't wait to try it out on my LiveScript repos!