sstephenson / sprockets

Rack-based asset packaging system
2.55k stars 24 forks source link

Sprockets depends on JavaScript #738

Closed eiked closed 8 years ago

eiked commented 9 years ago

Hi at sprockets.

I'm trying to get my rails app up and running on alternative plattforms (aka porting)

All works just fine -- ruby compiles like a charme, but rails depends on sprockets, and sprockets depends on JavaScript.

This is where the trouble starts.

I can't get my rails app up and running, for the only reason, that there's no JS engine for sprockets to use. (got that to work on osx/ppc easily, now trying freebsd/ppc)

I'd like to suggest that the sprockets gem should work without reliance on JavaScript (on the server side)

As of my understanding, the sprockets gem collects the JavaScripts, and compresses them by invoking some js code on the server side.

I believe, this is the only reason why a JS enigne is needed on the server side. I'd believe a simple concateantion of the javascript codes would do as well.

Let's get rid of all the dependencies, if we do have a cat.

cat.s: ftp://minnie.tuhs.org/UnixArchive/PDP-11/Trees/V6/usr/source/s1/cat.s

~eike (just kidding)

eiked commented 9 years ago

https://developer.ibm.com/opentech/2015/06/30/ppc-support-for-google-v8-goes-mainstream/

rafaelfranca commented 9 years ago

So, if I get it right you want to sprockets to stop to require a JS engine because there is no engine that works in PPC, and also V8 support PPC now, so why could not use use V8 in PPC as engine to sprockets?

rafaelfranca commented 9 years ago

BTW, sprockets home is now https://github.com/rails/sprockets

rafaelfranca commented 8 years ago

This issue was moved to rails/sprockets#168