-
4 Mar 2013 4:35 AM #1
extensible calendar, build separate ext classes and myapp
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:
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).Code: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
Now I'm using the following html code (index.html) to compile (without extensible cal):
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:Code:<head> <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> --> </head>
In the final html file I'll include the 3 files in the correct order (extjs, extensiblecal (or other external libs), my application)Code:<script src="JavaScript/libs/extensible/extensible-all.js"></script>
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:
Code:C:. | deploy.bat | index.html +---build +---css +---JavaScript | | app.js | +---app | | +---controller | | +---model | | +---store | | +---ux | | +---view | +---libs | | \---extensible | | | extensible-all.js | | +---resources | | +---src | \---metadata | +---controller | +---model | +---resource | +---store | +---view
-
6 Mar 2013 8:02 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
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 @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote