PDA

View Full Version : sencha cmd



javapurna
7 Jun 2013, 12:48 AM
hi every one .

i am trying to generate a multiple projects( it means all are Extjs projects ) with single workspace or multiple workspaces using sencha command.

my exact requirement is there are 4 projects all are Extjs Projects.

1)MainProject 2)SubProject1 3)SubPrjet2 4)SubProject3

MainProject i am using Calendar plugIn , Scheduler Plugins.
SubProject1 is also i want use Calendar plug code.
SubProject 2 is also i want to use Scheduler code.
Subproject 3 is also i want to use some other code used in MainProject.

By using Sencha command to build Projects .(in cmd workspace concept common code concept(Common/src) to possible ,but here is four different projects. how to share common code to this four projects .

(Or)

is there possibility to build one workspace to build four projects (all are extjs only (not like one is Extjs and another one is Touch app). and code sharing

slemmon
11 Jun 2013, 1:50 PM
You can put common code all in one folder structure and point to it with your Ext.loader config for each app.

What I've done is namespace all common code with JSLibrary and put it in a folder that all of my apps can reach and in the loader do something like:



Ext.Loader.setConfig({
enabled : true,
paths : {
'JSLibrary': '../JSLibrary'
}
});



Then for each project you'll use a requires statement either in the app or in the classes using the shared classes from the common folder.

javapurna
11 Jun 2013, 8:14 PM
thank you very much slemmon