ergobyte / qookery

Declarative UI Building for Qooxdoo
http://www.qookery.org/
Apache License 2.0
9 stars 5 forks source link

Updating Manifests to make contrib installable via "qx contrib install" #5

Closed cboulanger closed 6 years ago

cboulanger commented 6 years ago

Hi,

at the moment, qookery cannot be installed via qx contrib install because the Manifest.json files do not conform to the expected format. This PR fixes this. I have tested it on a fork of qookery which I will remove once the PR is merged:

qx contrib list cboulanger/qookery
NAME               VERSION   COMPATIBILITY   REQUIRES    
Qookery            0.4.1     √               ^6.0.0-alpha
Qookery ACE        0.4.1     √               ^6.0.0-alpha
qookery.calendar   0.4.1     √               ^6.0.0-alpha
Qookery Maps       0.4.1     √               ^6.0.0-alpha
qookery mobile     0.4.1     √               ^6.0.0-alpha
qookery.richtext   0.4.1     √               ^6.0.0-alpha

Thanks.

gnikolaidis commented 6 years ago

@cboulanger thank you for this PR. Can you direct me to some documentation on how to use the QX 6.0 tool-stack, specifically how to run "qx contrib list cboulanger/qookery" from a fresh QX master checkout?

cboulanger commented 6 years ago

The easiest way to work with the new toolchain is not to checkout the qooxdoo repo, but to treat it as a dependency. If you simply want to try out the toolchain without creating a "real" project, you can do the following (also look here, here and here):

npm install -g qxcompiler # this will download qooxdoo as well
qx # this should print an overview, if not, something went wrong
qx create myapp -I # creates an app with default configuration
cd myapp
npm link qooxdoo-sdk # this makes the qooxdoo sdk available to the local project
qx contrib update # This downloads a cached version of the registry, updated daily. To get an updated list, use --token=<your GitHub Token>
qx contrib list # only prints the compatible libraries, currently not very many
qx contrib list --all # also lists those which need to update their Manifest.json files (like yours)
qx contrib list --all --verbose # also prints the problems in the manifests
qx contrib list cboulanger/qookery # lists all releases
qx contrib install cboulanger/qookery # installs a contrib

Let me know if this works for you. @johnspackman and I are happy to answer any questions you might have about the compiler toolchain.

gnikolaidis commented 6 years ago

I have created a Qookery release and tagged it as v0.5.0, but qx contrib update (plus access token) does not seem to pick it up. Any ideas?

cboulanger commented 6 years ago

On https://github.com/ergobyte/qookery/releases there is a tag but no "real" release - maybe something went wrong?

bildschirmfoto 2018-07-25 um 15 39 39

Note that you'll have to put the version in all of the manifests info.version entries Update: I just saw that you did that, sorry!

gnikolaidis commented 6 years ago

Great, qx contrib install ergobyte/qookery worked without any errors. I will try to setup a QX6+Qookery toy project to check if everything works out-of-the-box. You are welcome to perform any checks that you deem necessary on your side.

cboulanger commented 6 years ago

I am happy it worked for you! I have deleted "cboulanger/qookery" and the next time the catalog is updated, there will be only "ergobyte/qookery" in the list of available contribs.