Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 36

Thread: What is the role of JSBuilder2 and how to use it ?

  1. #21
    Sencha User g2mac's Avatar
    Join Date
    Jun 2009
    Location
    Odessa, Ukraine
    Posts
    69

    Default

    I have an impression that JSBuilder just concatenates minified source files. Every /src/*.js has license text in header.

  2. #22
    Sencha User g2mac's Avatar
    Join Date
    Jun 2009
    Location
    Odessa, Ukraine
    Posts
    69

    Default

    Is that really so, that only I have such problem?

  3. #23
    Sencha Premium Member
    Join Date
    Aug 2007
    Location
    Pilsen, Czech Republic
    Posts
    41

    Default

    I have this problem too. My ext-all.js also contains comments.

  4. #24
    Sencha User g2mac's Avatar
    Join Date
    Jun 2009
    Location
    Odessa, Ukraine
    Posts
    69

    Default

    Quote Originally Posted by dherbolt View Post
    I have this problem too. My ext-all.js also contains comments.
    And nobody can explain yet why... ))))

  5. #25
    Sencha Premium Member
    Join Date
    May 2009
    Posts
    10

    Default

    I dont understand whats mean "pkgs" in Package Descriptors, this property it isn't referenced in the .jsb2 file format description:

    Example in ext.jsb2:

    {
    "name": "TabPanel",
    "file": "pkgs/pkg-tabs.js",
    "isDebug": true,
    "pkgs": ["pkgs/cmp-foundation.js"],
    "fileIncludes": [{
    "text": "TabPanel.js",
    "path": "src/widgets/"
    }]
    }

  6. #26
    Sencha Premium Member
    Join Date
    Aug 2007
    Location
    Pilsen, Czech Republic
    Posts
    41

    Default

    Comments are not removed by YUI Compressor because they strats with /*!, see http://www.julienlecomte.net/yuicompressor/README

  7. #27
    Sencha User
    Join Date
    Mar 2007
    Posts
    792

    Default

    Hi I need some help with deploy extjs using JSBuilder2.jar I don't understand the behavior of this application, for instances I copied the ext.jsb2 to other file myext.jsb2 in it I begun to remove files, for instance this is my User Extension JS Pack:

    Code:
    {
           "name": "User Extension JS Pack",
           "file": "examples/ux/ux-all.js",
           "isDebug": true,
           "fileIncludes": [{
              "text": "GridFilters.js",
              "path": "examples/ux/gridfilters/"
           },{
              "text": "Filter.js",
              "path": "examples/ux/gridfilters/filter/"
           },{
              "text": "BooleanFilter.js",
              "path": "examples/ux/gridfilters/filter/"
           },{
              "text": "DateFilter.js",
              "path": "examples/ux/gridfilters/filter/"
           },{
              "text": "ListFilter.js",
              "path": "examples/ux/gridfilters/filter/"
           },{
              "text": "NumericFilter.js",
              "path": "examples/ux/gridfilters/filter/"
           },{
              "text": "StringFilter.js",
              "path": "examples/ux/gridfilters/filter/"
           },{
              "text": "ListMenu.js",
              "path": "examples/ux/gridfilters/menu/"
           },{
              "text": "RangeMenu.js",
              "path": "examples/ux/gridfilters/menu/"
           },{
              "text": "RowExpander.js",
              "path": "examples/ux/"
           }]
        },.......
    when I build I can read in the console:


    Building the 'User Extension JS Pack' package as 'examples/ux/ux-all-debug.js'
    - There are 10 file include(s).
    - - examples/ux/gridfilters/GridFilters.js
    - - examples/ux/gridfilters/filter/Filter.js
    - - examples/ux/gridfilters/filter/BooleanFilter.js
    - - examples/ux/gridfilters/filter/DateFilter.js
    - - examples/ux/gridfilters/filter/ListFilter.js
    - - examples/ux/gridfilters/filter/NumericFilter.js
    - - examples/ux/gridfilters/filter/StringFilter.js
    - - examples/ux/gridfilters/menu/ListMenu.js
    - - examples/ux/gridfilters/menu/RangeMenu.js
    - - examples/ux/RowExpander.js
    Building the 'User Extension CSS Pack' package as 'examples/ux/css/ux-all.css'
    - There are 2 file include(s).
    - - examples/ux/gridfilters/css/GridFilters.css
    - - examples/ux/gridfilters/css/RangeMenu.css
    .......

    Compressing output files...
    - - ux-all-debug.js -> ux-all.js

    and when I watch inside the file ux-all-debug.js it contains the others extension, I mean, it have the content of
    BufferView.js, ColumnNodeUI.js is that normal, all time the ux-all.js have the same size 149k any help please

    regards
    Frank

  8. #28
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    Are you sure you are looking at the correct output file? Your build process clearly doesn't include any other files.

  9. #29
    Sencha User
    Join Date
    Jan 2010
    Posts
    13

    Default JSBuilder2 Problem

    Hi everybody, I am trying to use the JSbuilder2, but I have a problem and I am not an expert. First I try to generated a normal version of EXT (With all libraries) y just replace the ext-all.js and reload my Page and I have this error:

    G is undefined
    [Break on this error] window.undefined=window.undefined;Ext=...window.attachEvent("onunload",a)}})(); ext-base.js (lnea 7)
    Ext.onReady is not a function [Break on this error] Ext.onReady(function() { extprincipal.php (lnea 57)

    I do not know if I added in the right way the libraries, right now I have:

    <link rel="stylesheet" type="text/css" href="ext-all.css"/>


    <script type="text/javascript" src="ext-base.js"></script>

    <script type="text/javascript" src="ext-all.js"></script> <!-- This is my new Ext version-->

    Thanks for all your answers

    FG

  10. #30
    Ext User
    Join Date
    Dec 2008
    Location
    Shanghai
    Posts
    12

    Default

    Problem with chinese character

    Hello all,

    I use JSBuilder to compress some JS files. And some of it have chinese character. After compressed, the generated XXX-debug.js can not display chinese character correctly. Exactly said, some character are correctly displayed, and some not.

    Text encoding uses utf-8.

    how to fix it?

    thanks

Page 3 of 4 FirstFirst 1234 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •