Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all jar dependencies #70

Open
DominicWatson opened this issue Sep 27, 2012 · 1 comment
Open

Remove all jar dependencies #70

DominicWatson opened this issue Sep 27, 2012 · 1 comment
Assignees

Comments

@DominicWatson
Copy link
Contributor

Use JavaScript based libraries for all compilers and wrap them using Java's javax.script.ScriptEngineManager. i.e.

jsEngine = CreateObject( 'java', 'javax.script.ScriptEngineManager' ).getEngineByName( 'JavaScript' );

The aim is to remove the dependency on JavaLoader and all the jars currently being used in the project.

For minification, use csso and UglifyJs. LESS and CoffeeScript are already js libraries that we are loading through Java wrappers. Once done, we can add JSLint and CSSLint through the same mechanism.

@ghost ghost assigned DominicWatson Sep 27, 2012
@marcins
Copy link

marcins commented Apr 15, 2013

@DominicWatson - are you still working towards this?

I have just recently started playing with Coffeescript, and the first thing I found was that cfstatic has a rather old version through jcoffeescript which has effectively been abandoned.

Seems easy enough to replace coffee-script.js in the JAR, but would be much nicer to externalise the script so it was easier to keep up to date. Also Coffeescript now supports Source Maps in 1.6.x - being able to generate those in debug mode would be awesome.

Having a pluggable mechanism for the file handlers would be pretty cool - that way people could pick and choose or write new providers, you could then (maybe) maintain them separately from the cfstatic core too.

Anyway, just some thoughts and comments! If you have something on a feature branch that hasn't been published I'd be interested in checking it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants