Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jxc - jxcore-cordova installer helper #77

Open
ktrzeciaknubisa opened this issue Oct 2, 2015 · 9 comments
Open

jxc - jxcore-cordova installer helper #77

ktrzeciaknubisa opened this issue Oct 2, 2015 · 9 comments

Comments

@ktrzeciaknubisa
Copy link
Member

I've created a jxc helper module for installing jxcore-cordova and managing samples.
Primarily this was for my dev needs, but I thought I can share with others, who might find it useful.

$ jxc install --sample express_perf

This single command makes the jxcore-cordova plugin:

  • downloaded
  • unpacked
  • added to the project
  • sample/express_perf is used (plus jx install performed for the sample)

Note: to have jxc command available first install the module globally:

$ jx install -g jxc
@obastemur
Copy link
Member

why don't you make this available on npm ? and document on README of jxcore-cordova?

@cdynak
Copy link
Contributor

cdynak commented Oct 21, 2015

jxc is very nice as dev tool, but i think that the main goal should be to follow cordova plugins publishing standard described here: http://cordova.apache.org/plugins/authors.html

applying this will make work the most known and user friendly way of installing plugins:

$ cordova plugin add cordova-plugin-jxcore

it will be also visible in official cordova plugin search: http://cordova.apache.org/plugins/

also jxcore userbase could then increase a lot.

@ktrzeciaknubisa
Copy link
Member Author

@cdynak I like this idea.

@ktrzeciaknubisa
Copy link
Member Author

@cdynak NPM repository may have problems with large packages. They were advising to use max to 10MB package sizes: npm/npm#4738 (comment). We have almost 10 times more in jxcore-cordova.

Until we resolve how to efficiently add jxcore-cordova large binaries to the npm package (maybe hosted on other server), you may use updated jxc:

  • binaries are downloaded from other server than github (it was problematic with large files)
  • better progress download display
  • option to cache downloaded files

We're going to put jxc to npm, after some more tests and user updates.

@cdynak
Copy link
Contributor

cdynak commented Oct 27, 2015

i've been thinking, that it would be not that easy...
for me jxc is even more useful than using plugins standard, because it supports samples managing. the main idea was just to "follow standard" and promote jxcore.

@ktrzeciaknubisa
Copy link
Member Author

The jxc tool went public and is available from npm repository. It also works with node (JXcore doesn't need to be installed), so both of the following will work:

$ npm install jxc
$ jx install jxc

And it works on Windows, too.

@obastemur
Copy link
Member

did we document this on README ?

@ktrzeciaknubisa
Copy link
Member Author

Not yet :)

@ktrzeciaknubisa
Copy link
Member Author

Documented.

Also, for Visual Studio usage there is jxc download command which only downloads the plugin (in contrast to jxc install which also add it to the cordova app).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants