Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Evans committed Aug 30, 2017
1 parent a8b01e7 commit d56ff4f
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ You can use things like `Mongo` or `FlowRouter` in your node modules.

First, clone this repo into your project's `/packages` directory and add `webantic:meteor-loader` to your package manifest in `/.meteor/packages`

Then, there are only two real hoops to jump through for this to work;
Then, there are only three real hoops to jump through for this to work;

### 1. You must wrap your node module's exports:

Expand Down Expand Up @@ -47,7 +47,7 @@ export {
}
```

### 2. You must access your Meteor dependencies via the @webantic/meteor-deps module
### 2. You must access your Meteor dependencies via the @webantic/meteor-deps module:

```js
var meteorRequire = require('@webantic/meteor-deps').get
Expand All @@ -64,4 +64,17 @@ meteorRequire('Meteor').then(function (Meteor) {
})

// The second approach opens the possibility of wrapping your module in a self-invoking anonymous async function
```
```

### 3. You must declare your dependencies in your module's package.json:

```json
{
"name": "my-cool-module",
...
"meteorDependencies": {
"kadira:flow-router": "client",
"meteor": ["client", "server"]
}
}
```

0 comments on commit d56ff4f

Please sign in to comment.