TheMangoFactory / bakehouse

Streamlines web pre-processors for Spring resources
http://themangofactory.github.com/bakehouse
21 stars 4 forks source link

Add support for installing Node packages #2

Closed martypitt closed 11 years ago

martypitt commented 11 years ago

Something along the lines of...

BakehouseConfig.addMetadataHandler(new NpmInstaller())

@NpmPackage('typescript')
public class TypescriptProcessor implements ResourceProcessor {

This should ensure that typescript is available via Npm, or log a warning if not present

martypitt commented 11 years ago

On further thought - this is a dumb idea.

Instead, favour the approach used in the Less & Typescript processors, where we're wrapping javascript scripts in a Rhino environment