On Friday, December 2, 2016 at 10:51:20 AM UTC, Rupert Smith wrote:
>
> If you want to render code on the server side, you can use 
>> https://github.com/eeue56/elm-server-side-renderer/ which is also 
>> written by me. While it's labelled a work in progress, we use it for 
>> our production tests at NoRedInk and have been doing so for a while 
>> now. 
>>
>
> I've been a bit busy recently but can start looking at this today. As I 
> say, plan is to try and run it under Java Nashorn (Java's default 
> javascript engine).  Should be interesting...
>

First thing, I upgraded the code to Elm 0.18. I created a branch for that 
here: 

https://github.com/rupertlssmith/elm-server-side-renderer/tree/elm18 

I'm not sure the tests are actually running or what I might need to do to 
run them with elm-test. When I run the script I get:

 Successfully generated tests.js
 event: Ok "hello"

And trying to run directly with elm-test yields:

$ elm-test BasicTests.elm 
 Success! Compiled 0 modules.                                        
 Successfully generated /tmp/elm_test_116112-28044-4b4y0v.js
 event: Ok "hello"
 The test run failed because it encountered a runtime exception:
 [TypeError: testModule.worker is not a function]

I can create a pull request of that branch if you want to incorporate the 
elm 0.18 ugprade.


-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to