slevithan/XRegExp — pull request #7 by walling (2012-03-06 14:52:05+00:00)
Title: Implemented concatenate script

@slevithan, this is my patch as requested in issue #4. I created a script to concatenate the source files into `xregexp-all.js` and updated `package.json` accordingly. I also added `.npmignore` so the `src/` and `tools/` directories are not published on NPM, which means a small package.

As you might notice there's a file called `concatenate-source-files-fix.js` inserted just after the core module. This is used to define `XRegExp` in the module scope, so the addons can see it. Otherwise the first addon included will fail with a "XRegExp is not defined" exception. The file contains:

```javascript
var XRegExp = exports.XRegExp;
```

If this is not a satisfactory solution, I'm up for other ideas.