2.0.3 • Published 5 years ago

@webantic/meteor-deps v2.0.3

Weekly downloads
2
License
SEE LICENSE IN ./...
Repository
github
Last release
5 years ago

Meteor Deps

A module to store all runtime Meteor dependencies for npm modules to consume

This module is part of a suite:

Setup

  1. Add the injector to your module's exports:

    var wrapExports = require('@webantic/meteor-deps').wrapExports

var moduleExports = { thing1: require('./thing1.js'), thing2: require('./thing2.js') }

module.exports = wrapExports(module, moduleExports)

  or

```js
import { inject } from '@webantic/meteor-deps'

import thing1 from './thing1.js'
import thing2 from './thing2.js'

export {
thing1,
thing2,
inject
}
  1. Declare your dependencies in your package.json:

    {
    "name": "my-cool-module",
    "version": "1.0.0",
    "dependencies": {},
    "meteorDependencies": {
      "meteor": ["client", "server"],
      "kadira:flow-router": "client"
    }
    }

Usage

All the exports of every Meteor dep in your project's npm modules will be available in the meteor-deps module. You can retrieve them with .get():

var getDep = require('@webantic/meteor-deps').get
var Meteor = getDep('Meteor')

// In some cases, you may need to access the value asynchronously, like this:
getDep('Meteor').then(function (Meteor) {
  // ...
})
2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.9

7 years ago

1.1.8

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago