SlexAxton/messageformat.js — pull request #3 by Filirom1 (2012-04-03 20:53:12+00:00)
Title: Add a command line interface.

Hi,

What do you think of the idea of a CLI tool for messageFormat.

I made one that iterates recursively in a folder and compile each json found.

$ cd example/
$ ../../bin/messageformat.js --lang en
$ cd ../fr
$ ../../bin/messageformat.js --lang fr

I commited the exemple :

And the CLI sources, you can take a look at the options: .

This is a one evening hack, forked from , but if you like the idea, I could do something better.

Cheers
Romain