Page 3 of 3 FirstFirst 123
Results 21 to 28 of 28

Thread: SenchaSDKTools - sencha create jsb command

  1. #21
    Ext JS Premium Member phoenix06's Avatar
    Join Date
    Dec 2010
    Location
    Sophia Antipolis - France
    Posts
    34
    Vote Rating
    0
      0  

    Default

    Hello, did you find an answer to that issue? I have the same problem.

    Thanks

  2. #22
    Touch Premium Member
    Join Date
    Nov 2011
    Location
    Bay Area
    Posts
    68
    Vote Rating
    0
      0  

    Default

    +1

    I'm having the same issue.

  3. #23
    Sencha User
    Join Date
    Jul 2011
    Location
    Utrecht
    Posts
    84
    Vote Rating
    3
      0  

    Default

    I had the same issue. Turns out I had a typo in my path.

    What I did:
    open a terminal
    cd to the project folder (/Applications/XAMPP/xamppfiles/htdocs/testapp in my case)
    create jsb from url
    sencha build.

    The below command is create usb + sencha build if you are in your projects directory.
    Code:
    sencha create jsb -a http://localhost/mycon/index-d.html -p /Applications/XAMPP/xamppfiles/htdocs/testapp/testapp.jsb3 -v && sencha build -p testapp.jsb3 -d .

  4. #24
    Ext JS Premium Member phoenix06's Avatar
    Join Date
    Dec 2010
    Location
    Sophia Antipolis - France
    Posts
    34
    Vote Rating
    0
      0  

    Question probelm of JSB3

    The problem is that the JSB3 file is not well generated, I have

    Code:
    {
        "projectName": "Project Name",
        "licenseText": "Copyright(c) 2011 Company Name",
        "builds": [
            {
                "name": "All Classes",
                "target": "all-classes.js",
                "options": {
                    "debug": true
                },
                "files": []
            },
            {
                "name": "Application - Production",
                "target": "app-all.js",
                "compress": true,
                "files": [
                    {
                        "path": "",
                        "name": "all-classes.js"
                    },
                    {
                        "path": "",
                        "name": "app.js"
                    }
                ]
            }
        ],
        "resources": []
    }
    with this page:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>NexSun</title>
        
        <link rel="stylesheet" type="text/css" href="lib/extJs/resources/css/ext-all.css"/> 
        
        <script type="text/javascript" src="lib/extJs/ext-all.js"></script>
        <script type="text/javascript" src="lib/extJs/locale/ext-lang-fr.js"></script>
        
        <script type="text/javascript">         
                  
            Ext.onReady(function() {
                
                viewport = Ext.create('Ext.container.Viewport', {  
                     id:            'viewport',...
    And my page works fine.
    Do I have to include the needed file and/or classes differently?

    Can you gave me a sample page code and the result in jsb3 file please?

    Thanks

  5. #25
    Sencha User
    Join Date
    Jul 2011
    Location
    Utrecht
    Posts
    84
    Vote Rating
    3
      0  

    Default

    Quote Originally Posted by phoenix06 View Post
    The problem is that the JSB3 file is not well generated, I have

    Code:
    {
        "projectName": "Project Name",
        "licenseText": "Copyright(c) 2011 Company Name",
        "builds": [
            {
                "name": "All Classes",
                "target": "all-classes.js",
                "options": {
                    "debug": true
                },
                "files": []
            },
            {
                "name": "Application - Production",
                "target": "app-all.js",
                "compress": true,
                "files": [
                    {
                        "path": "",
                        "name": "all-classes.js"
                    },
                    {
                        "path": "",
                        "name": "app.js"
                    }
                ]
            }
        ],
        "resources": []
    }
    with this page:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>NexSun</title>
        
        <link rel="stylesheet" type="text/css" href="lib/extJs/resources/css/ext-all.css"/> 
        
        <script type="text/javascript" src="lib/extJs/ext-all.js"></script>
        <script type="text/javascript" src="lib/extJs/locale/ext-lang-fr.js"></script>
        
        <script type="text/javascript">         
                  
            Ext.onReady(function() {
                
                viewport = Ext.create('Ext.container.Viewport', {  
                     id:            'viewport',...
    And my page works fine.
    Do I have to include the needed file and/or classes differently?

    Can you gave me a sample page code and the result in jsb3 file please?

    Thanks
    You should not do javascript in your HTML page. The build script gets dependencies from your app.js file.
    I suggest you read this guide: http://docs.sencha.com/touch/2-0/#!/...etting_started
    And this guide for MVC http://francisshanahan.com/index.php...nutes-or-less/

    I hoped this helped

  6. #26
    Ext JS Premium Member phoenix06's Avatar
    Join Date
    Dec 2010
    Location
    Sophia Antipolis - France
    Posts
    34
    Vote Rating
    0
      0  

    Question

    You should not do javascript in your HTML page. The build script gets dependencies from your app.js file.
    Ok thanks for the advise. I followed the links you gave me, but I switched to links to Extjs (which is the same architecture explanation).

    But a big issue occured: we have in our company a coding convention(about folders and files) which is really different than the prerequire given in those links.

    So If I right understood, if I don't code as Sencha ask, I cannot rebuild the library?

    I thought it was a tool that search all JavaScript files or files with JavaScript, in a main folder, then recover all ExtJs classes used...?
    Last edited by phoenix06; 26 Nov 2011 at 7:22 AM. Reason: forgot something

  7. #27
    Sencha User
    Join Date
    Nov 2008
    Posts
    54
    Vote Rating
    3
      0  

    Default create jsb command

    any update on this?

    Did anyone get the create jsb command to work yet?

  8. #28
    Sencha User
    Join Date
    Apr 2013
    Posts
    1
    Vote Rating
    0
      0  

    Default win7 deployment, sencha create - Unknown command

    I'm pretty sure, I've followed the document
    while deployment sencha on my pc http://docs.sencha.com/extjs/4.2.0/#...etting_started

    The issue I faced is Unknown command 'create' from command line, below is my result

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.&nbsp; All rights reserved.
    C:\Users\username>cd C:\pathtoproject\helloext
    C:\pathtoproject\helloext>sencha create jsb -a index.html -p app.jsb3
    Sencha Cmd v3.1.1.274
    [ERR] Unknown command: "create"
    C:\pathtoproject\helloext>


    Please advise if something missed, cause seems it stuck futher development steps
    according to same multiple claims above in the forum

    Thank you

Page 3 of 3 FirstFirst 123

Similar Threads

  1. Sencha Command for Windows?
    By sdruckerfig in forum Sencha Touch 1.x: Discussion
    Replies: 15
    Last Post: 22 Jan 2012, 3:54 PM
  2. ExtJS 4 / MVC / Sencha Command?
    By ssamayoa in forum Ext: Discussion
    Replies: 31
    Last Post: 6 Jul 2011, 12:22 PM
  3. Sencha Command!?
    By AndreaCammarata in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 1 Apr 2011, 10:36 PM
  4. sencha command generate
    By jskufca in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 25 Mar 2011, 1:57 PM

Posting Permissions

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