Is there any best practice for dividing a worklight project into streams and components?
Asked
Active
Viewed 163 times
2 Answers
2
Silva,
Perhaps the following IBM Worklight user documentation topic will help you: Integrating with source control systems.
There is the following approach as well.

Idan Adar
- 44,156
- 13
- 50
- 89
1
A IBM Worklight project should use components for each coherent set of files, like a worklight project (with its containers, html files, css, ...)
Anything generated, like an android project generated to be run and simulated, shouldn't be in a component.
You can start simple with a single stream (which groups all components you need to work), or with one stream per component (but that approach doesn't scale well past 10-20 components, since the streams have no hierarchy)

VonC
- 1,262,500
- 529
- 4,410
- 5,250
-
@IdanAdar no, coherent set of fileS, as in "multiple files". – VonC Aug 14 '14 at 20:04
-
I'm a little unsure about the coherent set of files part. Lets say that I have a hybrid app with 2 adapters and a common folder a ipad and a android environments. Should I have a component for each adapter folder, etc... Or should I create a worklight project for each adapter, etc and put all of that in one component under a (1) stream? – Silva Aug 14 '14 at 20:10
-
@Silva "coherent" means it has its own history: if one adapter can evolve while the other is unchanged, *and* one adapter is more than a few files, then it is a good candidate for a component. And yes, the stream is where you add all the components you need to work. – VonC Aug 14 '14 at 20:12
-
As an example, if I understood you right, I should put inside one component every file needed for a adapter compilation and deployment. Is this a good approach? I'm sorry for the newbie questions. – Silva Aug 14 '14 at 20:12
-
@Silva yes, it is a good approach, and part of a component approach (see http://stackoverflow.com/a/7322295/6309). – VonC Aug 14 '14 at 20:14
-
@VonC Thanks for your answers. It has helped me grasp the RTC vs worklight problematic. – Silva Aug 14 '14 at 20:18