Running with --harmony flag

29 views
Skip to first unread message

pim vdb

unread,
Jul 8, 2012, 7:44:24 AM7/8/12
to node...@googlegroups.com
I'd like to use some harmony features on Nodester. How can I run an app with the --harmony flag? I'm targeting node 0.8.1.

Alejandro Morales Gámez

unread,
Jul 8, 2012, 10:14:03 PM7/8/12
to node...@googlegroups.com
Hi! Yes you can run your app with node flags (--v8-options, --harmony and many others) see this silly example -> http://harmony.nodester.com/ 

What you need to do?
Well, only add a new key in your package.json with the name of "flags" (Array) and the correct node version (0.8.1):

    {
      ...
      "node" : "0.8.1"
      "flags":["--harmony"] 
      ...
    }


See the example package.json -> http://harmony.nodester.com/package.json
And the server too -> http://harmony.nodester.com/server.js


/be

pim vdb

unread,
Jul 9, 2012, 7:15:55 AM7/9/12
to node...@googlegroups.com
Thanks a lot for the explanation, wonderful!
Reply all
Reply to author
Forward
0 new messages