# meteor-client-bundler

> Bundles Meteor client-packages into a single module

Latest version **0.6.0** (published 2018-11-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install meteor-client-bundler
pnpm add meteor-client-bundler
yarn add meteor-client-bundler
bun add meteor-client-bundler
```

Provides the command `meteor-client`.

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.6.0 |
| Published | 2018-11-16 |
| First published | 2017-01-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 14.8 KB |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 191 |
| Author | Eytan Manor |
| Maintainers | ardatan, dab0mb, urigo |
| Keywords | meteor, client |

## Links

- npm: https://www.npmjs.com/package/meteor-client-bundler
- Repository: https://github.com/Urigo/meteor-client-bundler
- npm.io page: https://npm.io/package/meteor-client-bundler

## Dependencies (7)

- [tmp](https://npm.io/package/tmp.md) 0.0.33
- [execa](https://npm.io/package/execa.md) 1.0.0
- [merge](https://npm.io/package/merge.md) 1.2.1
- [rimraf](https://npm.io/package/rimraf.md) 2.6.2
- [commander](https://npm.io/package/commander.md) 2.19.0
- [find-root](https://npm.io/package/find-root.md) 1.1.0
- [babel-core](https://npm.io/package/babel-core.md) 6.26.3

## Recent versions

- 0.6.0 (latest) — 2018-11-16
- 0.5.9 — 2018-08-09
- 0.5.8 — 2018-08-07
- 0.5.7 — 2018-07-11
- 0.5.6 — 2018-07-11
- 0.5.5 — 2018-07-10
- 0.5.4 — 2018-07-10
- 0.5.3 — 2018-07-10
- 0.5.2 — 2018-07-10
- 0.5.1 — 2018-07-08
- 0.5.0 — 2018-03-18
- 0.4.0 — 2018-03-17
- 0.3.0 — 2017-09-11
- 0.2.1 — 2017-04-20
- 0.2.0 — 2017-04-18
- … 6 more at https://npm.io/package/meteor-client-bundler/versions

## README

# Meteor Client Bundler

`meteor-client-bundler` is a module bundler which will take a bunch of Atmosphere package and put them into a single module, so we can load Meteor's client scripts regardless of what framework we're using to run our server. This project was originally created due to [Ionic2CLI-Meteor-Whatsapp](https://github.com/Urigo/Ionic2CLI-Meteor-WhatsApp) and the urge to combine both Ionic along with Meteor, so we can enjoy Ionic's great client and Meteor's powerful DDP client.

### API

#### Bundling

    $ meteor-client bundle

- **-s, --source [source-dir]** - A path for a Meteor project which already exists. This is useful if you want the bundled packages to have the same versions as in the specified project. If not specified, the packages specified in the config under the `import` field will be used instead.
- **-d, --desination [destination-file]** - The path for the bundled module. Defaults to `node_modules/meteor-client.js`.
- **-c, --config [config-file]** - The path for the bundler config file. Defaults to `meteor-client.config.json`. An example config can be found in the [examples section](#examples). The config can contain the following fields:
  - **runtime** - Meteor’s runtime config. Most commonly used to set the URL of the Meteor server we would like to interface with, which defaults to `localhost:3000`.
  - **import** - A list of packages we would like to include in our bundle. Will most likely contain the `meteor-base` package, as it’s the core file of Meteor’s client, and without it, there will be no Meteor whatsoever.
- **--url [connection-url]** - DDP default connection URL.
- **--packs-dir [packages-dir]** - Export `METEOR_PACKAGE_DIRS`. Defaults to the `packages` directory under the root directory of the project. For more information, see [reference](https://docs.meteor.com/environment-variables.html#METEOR-PACKAGE-DIRS).
- **-r, --release [meteor-release]** - Use a specific release of Meteor. Defaults to the globally installed release or the one used in the specified source directory.

### Example

#### Command

    $ meteor-client bundle --destination meteor.bundle.js --config bundler.config.json

#### Config

```json
{
  "release": "1.5.2",
  "runtime": {
    "DDP_DEFAULT_CONNECTION_URL": "http://1.0.0.127:8100"
  },
  "import": [
    "accounts-base",
    "mys:accounts-phone",
    "jalik:ufs@0.7.1_1",
    "jalik:ufs-gridfs@0.1.4"
  ],
  "npmPackages": []
}
```

#### Integrating With React Native

See [React Native Meteor Boilerplate](https://github.com/DAB0mB/ReactNativeMeteorBoilerplate).

### Integrating with Angular CLI

See [Angular CLI - Meteor Example](https://github.com/Urigo/angular-meteor/tree/master/examples/AngularCLI)

### License

MIT

---
_Source: https://npm.io/package/meteor-client-bundler · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
