rogp/jspp — pull request #17 by jussi-kalliokoski (2011-12-20 13:52:08+00:00)
Title: Made it work with node and created a node CLI tool

Hey there!

So, I like this tool, but I'm a CLI guy, so I can't deal with the productivity break of going to a browser, copy paste my code, compile, then copy paste it back somewhere, etc, so I wanted to give you a hand. I hope what I created is somewhat satisfactory for a start at least.

I started off by making the code compatible with node.js, so to keep it simple, I moved the source files to ``` src/ ``` (sorry), created a ``` package.json ``` , and a makefile to concatenate the scripts to a single file (this makes it easier to keep releases and branches separate as well).

Then I made the CLI tool. Currently it only has the compile feature, and I didn't do anything about library resolving, in case you already had plans for that (which seems likely, it's your project).

For executing from command line, and library resolving, I have a few ideas I'd like to share if you're interested, but I'll see what you think of this first.

Cheers,
Jussi