Results 1 to 4 of 4

Thread: Sencha Cmd 6.2.1 : How to use the compile command on ExtJs 6.2.1 Modern?

  1. #1

    Default Sencha Cmd 6.2.1 : How to use the compile command on ExtJs 6.2.1 Modern?

    Hi,

    Below is a sample compile command that works on sencha-touch-2.4.2

    sencha -sdk ..\senchatouch-2.4.2 compile union -r -class Ext.Button and concat -yui -strip -out JustTheButton.js

    Does anyone know the equivalent of the above for ExtJs 6.2.1 Modern?

    sencha -sdk ..\ext-6.2.1 compile union -r -class Ext.Button and concat -yui -strip -out JustTheButton.js

    emits an empty output file. I think I have to specify that the target is for modern toolkit, but don't know how to. I believe the same applies to ext-6.2 too

    Thanks in advance..


    [UPDATE]:
    Problem solved, see post #4

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,448

    Default

    You can try using the config command first:

    Code:
    sencha \
        config \
            -prop build.id=modern \
            -prop build.name=modern \
        then \
        compile \
        ....
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3

    Default

    Hi Micthell,

    I have tried it, still the same(emits an empty output file).

    sencha config -prop build.id=modern -prop build.name=modern then -sdk ..\ext-6.2.1 compile union -r -class Ext.Button and concat -yui -strip -out JustTheButton.js

    emits an empty output file.

    I have also tried putting build.id=modern, build.name=modern in the sencha.cfg file in the cmd installation folder
    I don't have any other cfg files, just the cmd installation folder and a command prompt(at any directory), so I assume modifying the sencha.cfg file in the cmd installation folder would be enough, as there are no other .cfg files.
    (also tried various combinations, placing sencha.cfg with build.id=modern,build.name=modern in different directories etc, still no luck)

    Could you please try it out, see if you are able to generate the output file?

    Thank you,
    Nagarjuna

  4. #4

    Default

    Hi,

    The problem has been solved for me.

    for ext-6.2.1, I believe you have to run the command inside an app's root directory (and no need of specifying the -sdk option)

    sample:
    md blankapp
    sencha -sdk ..\ext-6.2.1 generate app blankapp .\blankapp
    cd blankapp
    sencha app build production
    sencha config -prop build.id=modern -prop build.name=modern then compile union -r -class Ext.Button and concat -yui -strip -out JustTheButton.js

    running the compile command inside blankapp folder is important.

Similar Threads

  1. Replies: 0
    Last Post: 9 May 2014, 11:21 AM
  2. Replies: 1
    Last Post: 13 Feb 2014, 3:48 PM
  3. Replies: 1
    Last Post: 16 Sep 2013, 12:13 AM
  4. Extjs sencha command build issue in extjs 4
    By anandwin1990 in forum Sencha Cmd
    Replies: 1
    Last Post: 24 May 2013, 5:05 AM
  5. need help with a compile command
    By Christiand in forum Sencha Cmd
    Replies: 0
    Last Post: 19 Dec 2012, 4:21 AM

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
  •