开发者社区> 镜像站> NPM> meteor-client-bundler
meteor-client-bundler
Bundles Meteor client-packages into a single module
Last updated 2 years ago by ardatan .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install meteor-client-bundler 
SYNC missed versions from official npm registry.

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 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. 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.
  • -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

{
  "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.

Integrating with Angular CLI

See Angular CLI - Meteor Example

License

MIT

Current Tags

  • 0.6.0                                ...           latest (2 years ago)

21 Versions

  • 0.6.0                                ...           2 years ago
  • 0.5.9                                ...           2 years ago
  • 0.5.8                                ...           2 years ago
  • 0.5.7                                ...           2 years ago
  • 0.5.6                                ...           2 years ago
  • 0.5.5                                ...           2 years ago
  • 0.5.4                                ...           2 years ago
  • 0.5.3                                ...           2 years ago
  • 0.5.2                                ...           2 years ago
  • 0.5.1                                ...           2 years ago
  • 0.5.0                                ...           3 years ago
  • 0.4.0                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.1                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
  • 0.0.4                                ...           4 years ago
  • 0.0.3                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (7)
Dev Dependencies (3)
Dependents (1)