1. #1
    Ext JS Premium Member
    Join Date
    Aug 2011
    Location
    Greenville, SC
    Posts
    137
    Vote Rating
    13
    bmacdon1 will become famous soon enough

      0  

    Default How do you build multiple files of the same app?

    How do you build multiple files of the same app?


    I am just wondering what you guys did to generate the different extjs files. Did you use multiple properties files or is there a configuration I can use?

    Example of built files:
    ext-all.js
    ext-all-debug.s
    ext-all-debug-w-comments.js

  2. #2
    Sencha User aw1zard2's Avatar
    Join Date
    Sep 2009
    Location
    Dallas, Texas
    Posts
    577
    Vote Rating
    32
    aw1zard2 has a spectacular aura about aw1zard2 has a spectacular aura about

      0  

    Default


    PHP Code:
    sencha -sdk ext-4.2.2 compile exclude -namespace Ext.ux,Ext.chart,Ext.flash,Ext.rtl 
    and include -namespace Ext.ux.IFrame 
    and -debug=false concat myext-debug-w-comments.js 
    and -debug=false concat -strip myext-debug.js 
    and -debug=true concat -strip myext-dev.js 
    and -debug=false concat -strip -yui myext-all.js 
    The -strip removes all comments.
    The -debug=false removes all the warn/error messages ext-dev produces.

    This is just one example of how to use it.
    It is close to what I used at my company.

  3. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    898
    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


    Quote Originally Posted by aw1zard2 View Post
    The -debug=false removes all the warn/error messages ext-dev produces.
    You may see code around that looks like this:

    Code:
    //<debug>
    .... code here
    //</debug>
    Anything within the //<debug> and //</debug> will be stripped out. I use this in my apps quite a bit to override settings for local dev and the build will automatically remove them for deployment to prod so it's like automation for local dev to prod settings. Also in extensions I built, if say an argument is missing or wrong type I use it to give out warnings so someone would know that they did something wrong (if they look at the console), this is basically what the framework does is if something isn't right it logs/errors out but is wrapped in the debug comments.
    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.

  4. #4
    Ext JS Premium Member
    Join Date
    Aug 2011
    Location
    Greenville, SC
    Posts
    137
    Vote Rating
    13
    bmacdon1 will become famous soon enough

      0  

    Default


    Quote Originally Posted by aw1zard2 View Post
    PHP Code:
    sencha -sdk ext-4.2.2 compile exclude -namespace Ext.ux,Ext.chart,Ext.flash,Ext.rtl 
    and include -namespace Ext.ux.IFrame 
    and -debug=false concat myext-debug-w-comments.js 
    and -debug=false concat -strip myext-debug.js 
    and -debug=true concat -strip myext-dev.js 
    and -debug=false concat -strip -yui myext-all.js 
    The -strip removes all comments.
    The -debug=false removes all the warn/error messages ext-dev produces.

    This is just one example of how to use it.
    It is close to what I used at my company.
    What about running it through the test.properties / production.properties file?

Thread Participants: 2