ibm-js / dworklight

Dojo - Worklight Libraries
Other
5 stars 2 forks source link

Add prebuilt packages to the Installation section. #8

Open ccmitchellusa opened 11 years ago

ccmitchellusa commented 11 years ago

The current installation examples are full source checkouts of the github projects. Can you please add examples that use NPM or bower to get a pre-built version of dworklight and automatically install dependencies like dcordova using package.json dependencies.

kfbishop commented 11 years ago

I'm not sure NPM or Bower is proper for this, due to the fixed nature of the install directories for these tools. Also, I dont think dworklight could/would run under node, so its sort of using a tool because its popular, rather than the right tool for the job. With that said, the only tool I know of thats appropriate is KrisZyp's "CPM".

I guess we need to figure out a clean way to perform a build, package it up (single JS "min" file will not work), and proper distribution. This will then apply to all our other "dProjects" as well. Is the Dojo Foundation packages repo still the proper place for these? It seems rather stagnent.

Has anyone else already put these pieces together? If so, then please let me know, as I dont want to recreate the efforts.

cjolif commented 11 years ago

@kfbishop this is indeed definitely something we need to solve in a similar manner for all our projects (and probably for the entire dojo ecocystem)

For the build part this is definitely in @clmath objective to look at how to build a standalone project easily. I guess you can come up with a solution with current build system but in 2.0 we hope to have grunt-based tasks that will simplify this. Then for the deployment part nobody is really assigned to this yet. Most of our projects are anyway far from being consumable yet so we have some time. That said if you need that earlier you might investigate yourself and let us know your findings so that we can coordinate.

I agree npm is probably not the right tool in general (too much linked to Node.JS packages). The problem of CPM is that it is Java-based and we are trying to get away of Java-based tools in favor of JS-based tools.

The two package managers I had in mind were Bower and Volo (Volo being more than a package manager). They both I think directly take the project from github without needing a 3rd party repo like Dojo Foundation packages.

kfbishop commented 11 years ago

I spent some time today working on the dworklight-testapp (build branch), and now have it integrated with npm, grunt and bower. I also think I can make simple calls out to ANT to drive dojo and Worklight builds. Its more of a learning exercise currently, but I have a pretty firm grasp on whats needed. I'll look into volo and see if it will integrate cleanly into our eco-system.

chrisfelix82 commented 11 years ago

Karl. Yes you can call out to ANT. Take a look at the yo dawg Yeoman generator project for examples.