SlexAxton/messageformat.js — pull request #50 by eemeli (2014-06-03 17:32:43+00:00)
Title: use local instance of pegjs & rm lib/message_parser.js from version control

pegjs is a dependency of messageformat; there's no reason why it should be installed globally, when we can use the local one that always ends up at `node_modules/.bin/pegjs`.

`lib/message_parser.js` is treated as an intermediary file, but it's still included in the repository. It's generated from `lib/message_parser.pegjs`, and mostly changes depending on which version of pegjs has been used; the current version for instance doesn't match the contents of `./messageformat.js`. There's no reason for it to be included in the repository, as it'll get autogenerated by `make publish` or `make parser`.

The `Makefile` contains some useless lines, and the target dependencies aren't directly included so `make publish` always runs pegjs, even if `lib/message_parser.js` is up to date.

This pull request fixes these things.