1. #1
    Sencha Premium Member
    Join Date
    Sep 2008
    Posts
    710
    Vote Rating
    5
    Bucs is on a distinguished road

      0  

    Default New instructions for using JSBuilder3?

    New instructions for using JSBuilder3?


    Have the instructions or use changed at all for using JSBuilder3? I am trying to use this with Sencha Touch...and the documentation is still sparse at best, and probably outdated. I see that JSBuilder directory comes with the download package for Touch 1.1, but I see no JSBuilder.jar file anywhere. So how do I launch the tool? I see a batch file...but no docs on using it or how to setup the directory structure properly in a Windows environment.

    Love to use these "recommended" tools for performance, just unsure as to why the documentation is always so poor on how to use them. Very frustrating.

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2008
    Posts
    710
    Vote Rating
    5
    Bucs is on a distinguished road

      0  

    Default


    So it appears that the JSBuilder has changed a lot since JSB2, not sure as I never used JSB2. But now there appears to be a bat file that you run (for Windows) that you can pair with your own .jsb3 config file to accomplish the concatenation of your various app files into one. That all works fine, or so it appears to.

    However, I am not really seeing any compression whatsoever, do we have to do something different to force the JSB3 process to compress? I simple made a call the JSBuilder.bat file with the source and destination dirs specified.

    I also tried to run the ycompressor on my own, and it reported illegal characters and syntax errors on every whitespace line and comment symbols. Speaking of, why wouldn't these be stripped out of a minimized file?

    Would really like Sencha, or someone who knows JSB3 to jump in here and enlighten me, or point me at some JSB3 specific instructions.

    Thanks

  3. #3
    Ext Premium User
    Join Date
    Mar 2007
    Posts
    89
    Vote Rating
    1
    Luc is on a distinguished road

      0  

    Default


    I tried to use JS Builder 3, included in Sencha Touch 1.1.0. While it does combine source files, it doesn't minify them. So I explicitly called ycompressor. Then you will get the illegal character errors. It seems that JSBuild encodes the resulting file in utf-8. You can get illegal character errors by specifying --charset utf-8 option for ycompressor.

    So to combine and minify your js source files, create a build.bat file like this:

    Code:
    call \path\to\jsbuilder\jsbuilder.bat -p yourapp.jsb3 -d deploy
    
    java -jar \path\to\jsbuilder\ycompressor\ycompressor.jar deploy\all.js -o deploy\all-min.js -v --charset utf-8
    I hope this helps.

  4. #4
    Sencha User
    Join Date
    Apr 2012
    Posts
    1
    Vote Rating
    0
    unmicd is on a distinguished road

      0  

    Default


    I know it's way late, but in case someone else comes around with the same question... there's a "compress" boolean option you can specify at the package level in your jsb3 file. There's a sample here that shows it, just below the "The .JSB3" header.

    http://www.akawebdesign.com/2011/11/...ols-jsbuilder/
    Last edited by unmicd; 3 Apr 2012 at 1:25 PM. Reason: Example contained use of deprecated code.

Similar Threads

  1. How to use JSBuilder3?
    By elishnevsky in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 29 Nov 2011, 8:04 AM
  2. How to update 'instructions' of a fieldset.
    By ssdesign in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 8 Aug 2010, 8:05 PM
  3. Setup Instructions
    By GregT in forum Ext.Direct
    Replies: 4
    Last Post: 8 Oct 2009, 8:10 AM
  4. Upgrade Instructions 2.0 -> 2.1
    By .:lay-z-cow:. in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 21 Apr 2008, 2:24 AM
  5. Installation instructions for .NET
    By yaip in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 20 Nov 2007, 1:40 PM

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar