Bundling meteor client for offline use.#86
Bundling meteor client for offline use.#86JarnoLeConte wants to merge 2 commits intoelectron-webapps:masterfrom
Conversation
|
This looks great any word on when it will be merged ? |
|
I like this feature very much! And looking forward to seeing it merged! |
|
Until it's merged you can use my atmosphere package It would be great if people can test it. I'm not sure of the bundling method work well on all platforms. |
|
Hi this seems like a great idea, it's totally what i need for my next project... but I'm getting an error when i try to use the atmosphere package. originally when i ran it i got a bunch of access issues so i ran it with sudo, but still getting that one permission denied issue. gyp ERR! clean error npm ERR! Darwin 15.6.0 it says i should attach the log, but the log isn't where it says it is so I don't think i can. I tried again today... works totally fine no idea what was different, but seems all good so far. |
My first attempt to use meteor-electron to build offline apps.
This will bundle meteor client code with the app. So instead of an external entry point
rootUrlit will now have a single local entry fileindex.html(together with a.jsand.cssfile) that serves the whole app. The packaged app is therefore self contained.It relies on the package meteor-build-client which I have modified to run as node module. Originally it was a CLI only. Although that package needs some improvements. Error handling is not done very well, and there is little control over the executed commands which could lead to ghost processes. But I guess this could be improved over time.
All you have to do is include
"bundleClient": truein the electron settings.