PDA

View Full Version : minified version of extjs



Stephan123
7 Oct 2009, 2:31 AM
Hello !

I have seen the onlinebuilder for extjs.
( http://www.extjs.com/products/extjs/build/ )

But there is not for the version 3.0.
Is there an other onlinebuilder ?

Your sincerly

Stephan

Condor
7 Oct 2009, 2:46 AM
There is no "Build your own Ext 3", but you can build Ext 3 manually using JSBuilder2 (http://extjs.com/products/jsbuilder/) and edit the ext.jsb2 (http://extjs.com/forum/showthread.php?p=354473) file.

Stephan123
7 Oct 2009, 3:36 AM
Hello !

I have take a look into the jsbuilder.
I have 2 question.

In my test dir are files
* extjs.zip
* JSBuilder.jar
* ext.jsb2

When i now call the command


java -jar JSBuilder2.jar --projectFile J:\htdocs\extjs_builder\ext.jsb2 --homeDir J:\htdocs\extjs_builder\test\

Is there now build a new extjs - version from extjs.zip ?

I have take a first look in the ext.jsb2.
I found in the file some areas.
For example:


{
name: 'Drag Drop',
file: 'pkgs/ext-dd.js',
isDebug: true,
pkgDeps: ['pkgs/ext-foundation.js'],
fileIncludes: [{
text: 'DDCore.js',
path: 'src/dd/'

...
},{

When i remove this area then the drag and drop functions from the new
extjs version is killed.
Is this correct ?

Your sincerly

Stephan

Condor
7 Oct 2009, 4:57 AM
Steps:
1. Extract the Ext 3 SDK file to the project directory.
2. Ext 3.0.0 only: Put the ext.jsb2 file in the project directory (Ext 3.0.1+ already contains the ext.jsb2 file).
3. Optionally: Edit the ext.jsb2 file.
4. Execute:

java -jar JSBuilder2.jar --projectFile <project-dir>\ext.jsb2 --homeDir <output-dir>

Regarding editing the ext.jsb2 file:
I normally leave all packages the way they are and add some packages of my own at the bottom (so I don't delete the pkgs/ext-dd.js package, I just don't include it in my own package).

Stephan123
7 Oct 2009, 5:09 AM
Hello !

Thanks for the information.
I some situation the ext-all.js is to big.
When i only need the extjs-core and extjs-grid, i think a smaller version is better.


Your sincerly

Stephan

Condor
7 Oct 2009, 5:14 AM
Yes, so you would add your own package 'grid-only.js' at the bottom of ext.jsb2 and specify pkgDeps:

pkgs/ext-foundation.js
pkgs/cmp-foundation.js
pkgs/ext-dd.js
pkgs/data-foundation.js
pkgs/data-json.js
pkgs/pkg-grid-foundation.js
(or a different combination depending on your needs)