<commit_before>
To run the app:

```sh
cd meteor-app
meteor
```

Note: Until Meteor 1.2 is officially released, we've gotta manually specify for
our app to use Meteor 1.2-rc.7 or higher. `rocket:module` use Meteor 1.2's new
`Plugin.registerCompiler` API, which will be out very soon!

Meteor and `rocket:module`
==========================

Many useful React components and React-related modules are available on NPM,
and can be bundled for the client or the server with `rocket:module`.
`rocket:module` also allows you to write CommonJS, AMD, or ES6 modules.
`rocket:module` can be used for packages too, not just apps, and it will share
(as much as possible) NPM dependencies across packages in an app (and the app
itself).

Using NPM packages with `rocket:module`
---------------------------------------

You can use `rocket:module` to load NPM modules on the client or the server. Here's how:

### 1. Add `rocket:module`

```sh
meteor update --release 1.2-rc.7
meteor add rocket:module
```

Note that the update command is only temporary until Meteor 1.2 is released.

### 2. Add the NPM packages that you want to `npm.json`

Create an `npm.json` file in your app or package that specifies the
dependencies you'd like from NPM. In most cases, you should leave the carrot
(`^`) in front of the version number to ensure that the most compatible
versions of your dependencies can be found. If you need more control of the
versions in your package for whatever reason, you can (but try to avoid)
[plucking the carrot](http://semver.org).

If you're making a package, be sure to add your `npm.json` file via
`api.addFiles()`.

> `/path/to/your/app/npm.json`
> ```js
> {<commit_msg>Update readme.<commit_after>
To run the app:

```sh
cd meteor-app
meteor
```

Note: Until Meteor 1.2 is officially released, we've gotta manually specify for
our app to use Meteor 1.2-rc.7 or higher. `rocket:module` use Meteor 1.2's new
`Plugin.registerCompiler` API, which will be out very soon!

Meteor and `rocket:module`
==========================

Many useful React components and React-related modules are available on NPM,
and can be bundled for the client or the server with `rocket:module`.
`rocket:module` also allows you to write CommonJS, AMD, or ES6 modules.
`rocket:module` can be used for packages too, not just apps, and it will share
(as much as possible) NPM dependencies across packages in an app (and the app
itself).

Using NPM packages with `rocket:module`
---------------------------------------

You can use `rocket:module` to load NPM modules on the client or the server. Here's how:

### 1. Add `rocket:module`

```sh
meteor update --release 1.2-rc.7
meteor add rocket:module
```

Note that the update command is only temporary until Meteor 1.2 is released.

### 2. Add the NPM packages that you want to `npm.json`

Create an `npm.json` file in your app or package that specifies the
dependencies you'd like from NPM. In most cases, you should leave the carrot
(`^`) in front of the version number to ensure that the most compatible
versions of your dependencies can be found. If you need more control of the
versions in your package for whatever reason, you can (but try to avoid)
[plucking the carrot](https://docs.npmjs.com/misc/semver#caret-ranges-1-2-3-0-2-5-0-0-4).

If you're making a package, be sure to add your `npm.json` file via
`api.addFiles()`.

> `/path/to/your/app/npm.json`
> ```js
> {
{'fraction_non_alphanumeric': 0.12533020252421484, 'fraction_numerical': 0.011447020839448195, 'mean_word_length': 3.8, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1285964', 'n_tokens_mistral': 1074, 'n_tokens_neox': 994, 'n_words': 495}