Fork me on GitHub
#lumo
<
2019-04-24
>
keithmantell11:04:04

Hi, what are the various options for :target ( beyond :nodejs)

keithmantell12:04:11

:websocket seems to be another

keithmantell12:04:13

Iam trying to use lumo to produce javascript I can use with OpenWhisk. Has anyone tried this?

keithmantell12:04:53

If I start with this I get: { "error": "Initialization has failed due to: SyntaxError: Invalid or unexpected token\n at NodeActionRunner.init (/nodejsAction/runner.js:79:109)\n at doInit (/nodejsAction/src/service.js:143:31)\n at initCode (/nodejsAction/src/service.js:82:24)\n at /nodejsAction/app.js:62:13\n at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)\n at next (/node_modules/express/lib/router/route.js:137:13)\n at Route.dispatch (/node_modules/express/lib/router/route.js:112:3)\n at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)\n at /node_modules/express/lib/router/index.js:281:22\n at Function.process_params (/node_modules/express/lib/router/index.js:335:12)" }

keithmantell13:04:12

If I remove the shell directive and wrap the initial section in a function main, it works

keithmantell13:04:55

Is there a directive which will produce the *.js file in this format?

richiardiandrea21:04:47

is lumo reading from node_modules when I do lumo file.cljs?

richiardiandrea21:04:06

I have a strange error that it cannot find a js library that is in node_modules

richiardiandrea21:04:25

ok so if I do ./lumo /tmp/tmp.0BjCyWLnRv/test.cljs then node_modules cannot be read

richiardiandrea23:04:20

I have just discovered that... the --main option takes a main but if the main returns a promise it still exits without waiting? Am I right or I am seeing the ghosts?

richiardiandrea23:04:27

oh my node knowledge might need some refreshing

anmonteiro23:04:10

node should wait for pending promises to resolve before exiting

anmonteiro23:04:19

if you’re not seeing this then it’s probably a bug

richiardiandrea23:04:26

ok thanks yep I have just read that too