Results 1 to 2 of 2

Thread: extensible calendar, build separate ext classes and myapp

  1. #1
    Ext JS Premium Member
    Join Date
    Sep 2009
    Vote Rating

    Default extensible calendar, build separate ext classes and myapp

    I have an app where I used the following line to "compile" it into a single file:

    sencha compile -classpath=c:/inetpub/wwwroot/CommonFiles/ExtJS-4.1.1/src,JavaScript/app page --input-file index.html --output-page build/index-production.html
    This is worked until now. But now I want to integrate extensible calendar. In the development environment it is working (with extensible-all.js using xtypes in my code) but I can't compile (because the extensible calendar is not compatible with the current sdk compile method).

    Now I'm using the following html code (index.html) to compile (without extensible cal):
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>deploy example</title>        
        <link rel="stylesheet" href="/CommonFiles/ExtJS-4.1.1/resources/css/ext-all-gray.css">
        <!-- <x-compile> -->
            <!-- <x-bootstrap> -->
                <script src="/CommonFiles/ExtJS-4.1.1/bootstrap.js"></script>
            <!-- </x-bootstrap> -->
            <script type="text/javascript" src="JavaScript/app.js"></script>
        <!-- </x-compile> -->
    I think maybe the way how I can do it to compile sources to 2 files, one file contain the used ext libraris, the other is my application. Then add the extensible-all.js to the index.html:

    <script src="JavaScript/libs/extensible/extensible-all.js"></script>
    In the final html file I'll include the 3 files in the correct order (extjs, extensiblecal (or other external libs), my application)

    How can I create 2 separate files with sencha compile? (one is my app.js classes (they uses the calendar as an xtype, so it need the correct libs in compile time)

    My application structure is:
    |   deploy.bat
    |   index.html
    |   |   app.js
    |   +---app
    |   |   +---controller
    |   |   +---model
    |   |   +---store
    |   |   +---ux
    |   |   +---view
    |   +---libs
    |   |   \---extensible
    |   |       |   extensible-all.js
    |   |       +---resources
    |   |       +---src
    |   \---metadata
    |       +---controller
    |       +---model
    |       +---resource
    |       +---store
    |       +---view

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    I think I recall that extensible calendar needed to be modified to be buildable with Cmd. Not sure if this has happened and what version if it did happen. That calendar isn't created by Sencha so we don't have control over that code.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:

Tags for this Thread

Posting Permissions

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