Giter VIP home page Giter VIP logo

packmeteor's Introduction

Pack Meteor

This is a simple CLI for packaging the Meteor client into a folder. Its useful when creating Chrome Packaged Apps but can also be used with Cordova.

DEPRECATION NOTE: For Cordova, Meteor Core is developing cordova integration checkout branch "packaging-matt-cordova" and comment

Screenshot

Quick demo of packmeteor

###Installation:

$ npm install packmeteor

###Meteor Rig a Meteor app on localhost:3000 and install the packmeteor package

####Client-side There are at the moment only two, but common helpers on the client-side api. Packmeteor.cordova.isReady() - reactive status of the cordova Packmeteor.chrome.isReady() - not reactive but useful testing for chrome packaged apps.

####Server-side Packmeteor.addFile(url) - can add local files, mainly used if a cordova plugin needs to be added manually.

###Chrome packaged apps Create packaged app folder:

$ packmeteor -c hello

Autobuild and reload Chrome Packaged App on Meteor hotcode push:

$ cd hello
$ packmeteor -ar

NOTE: Chrome + Mac OS X -> Close the Chrome before running the script. Current chrome requires manual refresh of the app, goto chrome://extensions/ and click "update"

###Cordova Autobuild Cordova:

packmeteor -ae

This will autopackage and update android emulator, run packmeteor from the www folder in cordova

###Directly from filesystem Run the packaged client app without server: Simply open the index.html from finder / file explorer

###Usage:

$ packmeteor --help

  Usage: packmeteor [options]

  Options:

    -h, --help                        output usage information
    -V, --version                     output the version number
    -c, --create <name>               Create Packaged App
    -a, --autobuild                   Auto build on server update
    -r, --reload                      Reload app
    -b, --build [url]                 Client code url [http://localhost:3000]
    -s, --server <url>                Server url, default to build url [http://localhost:3000]
    -t, --target [packaged, cordova]  Target platform, default is autodetect
    -e, --emulate [platform]          Reload emulator [android]
    -d, --device [platform]           Reload device [android]
    -m, --migration                   Enable Meteor hotcode push

###Build from server The script packages the app from the Meteor app at localhost:3000 (default) Use -b http://myclient.com:80 for building the app from this location instead.

###Connection client to server The packaged client is mounted to the same server as the build server or current ip if could be found. But there may be cases where the client should connect to a different server. Use -s http://livedataserver.com:80

Kind regards Morten, aka @raix

packmeteor's People

Contributors

benweissmann avatar

Watchers

James Cloos avatar @brodycj - C. Jonathan Brody avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.