1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    61
    Vote Rating
    0
    extjslikeit is on a distinguished road

      0  

    Default Unanswered: Package scripts without using sencha build tools

    Unanswered: Package scripts without using sencha build tools


    I try to merg script using ant, however keep getting bunch of script not found errors as the sencha script tries to fetch individual files even though the files are already loaded...

    Is there a good way to build the app script without using the build tools? We do it very well with ExtJS 3.4 , however the touch version does not lend itself well.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,824
    Answers
    3470
    Vote Rating
    836
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    What's wrong with using the build tools like Sencha Command which is a end to end solution really.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Mar 2010
    Posts
    61
    Vote Rating
    0
    extjslikeit is on a distinguished road

      0  

    Default


    I too would prefer using the build tool if it works, however after following the instructions on the sencha web site, I try to generate jsb3 and the tool remains stuck infinitely with no error message. I see in processes that phantomjs is running, however process never ends.

    this is the command

    sencha create jsb -a index.html -p app.jsb3

    Any pointers will be helpful...

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,824
    Answers
    3470
    Vote Rating
    836
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    I enjoy using Sencha Command for an end-to-end solution: http://docs.sencha.com/touch/2-0/#!/guide/command
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Sencha User
    Join Date
    Mar 2010
    Posts
    61
    Vote Rating
    0
    extjslikeit is on a distinguished road

      0  

    Default


    Good.

    I tried sencha app build production and the tool printed following error message

    "...
    [ERROR] TypeError: 'undefined' is not an object
    Stack trace:
    : 49 : apam.view.UserNameLabel#updateHtmlText
    ....
    "

    updateHtmlText: function() {
    var currentuserinfostore = Ext.data.StoreManager.lookup('currentuserinfostore');

    if(currentuserinfostore) {
    var currentuserinfo = currentuserinfostore.getAt(0);

    var userDisplayName = currentuserinfo.get('DISPLAYNAME');

    this.setHtml(userDisplayName);
    }
    }

    LINE 49 is var userDisplayName = currentuserinfo.get('DISPLAYNAME');

    So, I commented out

    var userDisplayName = currentuserinfo.get('DISPLAYNAME');

    this.setHtml(userDisplayName);



    and executed the same command again with success.

    I try to see if the application at least loads. Above lines only affect a label text.

    The UI did load successfully however no events are being fired, i.e. scroll, itemtap etc do not work.

    Any pointers will help...

  6. #6
    Sencha User
    Join Date
    Mar 2010
    Posts
    61
    Vote Rating
    0
    extjslikeit is on a distinguished road

      0  

    Default Build issue is on PC only (I not not yet tried Mac)

    Build issue is on PC only (I not not yet tried Mac)


    Build issue is on PC only (I not not yet tried Mac)