2012-02-12 29 views
5

Ben ST SDK araçlarını yüklü ve ben komut satırına 'sencha' ne zaman bu bkz:Sencha Touch 2.x uygulaması için nasıl bir scaffold oluştururum?

$ sencha 
Sencha Command v2.0.0 Developer Preview 
Copyright (c) 2011 Sencha Inc. 


usage: sencha COMMAND [ARGS] 


The available commands are: 
    build   build a JSB project 
    create bootstrapdata  generate boostrap data 
    create jsb   generate a minimal JSB project for an app 
    create manifest  generate classes manifest 
    package   package your Touch web app into a native bundle 
    slice theme   slice a custom theme's images for IE 


See 'sencha help COMMAND' for more information on a specific command. 

Ama denemek zaman seçeneklerin her türlü bana soruyor 'bootstrapdata oluşturmak'.

$ sencha create bootstrapdata 
usage: sencha create bootstrapdata [OPTIONS...] 


COMMAND: Generate Bootstrap Data 


DESCRIPTION: 


    Generate boostrap data 
OPTIONS: 


--core[=]value, -c[=]value (required) 
    The list of all core package names, comma-separated, for example: 
    "foundation,core,dom" 


--ignore[=][value], -i[=][value] 
    The list of items to be ignored, comma-separated 


--jsb[=]value, -j[=]value (required) 
    The path to the framework's jsb3 file 


--output[=]value, -o[=]value (required) 
    The file path to write bootstrap data to 


--output-release[=][value], -r[=][value] 
    The file path to write bootstrap data-release to 


--platform[=]value, -p[=]value (required) 
    The path to platform source directory 


--src[=]value, -s[=]value (required) 
    The path to the framework's source directory 

nasıl 'temel Merhaba Dünya' ST2.x uygulamasını oluşturmak için, gerek filepaths ve diğer 'gerekli' seçeneksiz, komut satırında bir komut kullanıyor?

Teşekkürler.

Edit1: Btw, Ne yapmaya çalıştığım Tommy Maintz'in ST 2010 Conference adresindeki ST1.x'teki sunumunda yaptığı şey.

cevap

2

Sencha üretmek şu anda Sencha Touch 2 için mevcut değil. Sencha, ST2 piyasaya sürüldükten sonra, gelecekte bir noktada bir güncelleme yayınlamayı planlıyor. Başvurunuzu bir JS dosyasına derlerken

sencha create bootstrapdata kullanılır. Bu here hakkında daha fazla bilgi bulabilirsiniz.

Ayrıca son derece aktif olan Sencha Touch Forums numaralı telefondan soru sormanızı öneriyorum.

+0

Aslında oraya sormak, ama ben buraya geldi bu yüzden uygun bir yanıt alamadığı: bu klasörde aşağıdaki komutu çalıştırmak iken .com/forum/showthread.php? 180456-How-do-I-üretmek-a-scaffold-için-ST-2.x-app & p = 732835 & posted = 1 # post732835 – marcamillion

+0

Sigh, bunun için üzgünüm. – rdougan

+0

Endişeye gerek yok. En iyilerimize olur. – marcamillion

0

Sadece bunu yapmak isterseniz http://sencha.com/x/6p adresine gidin ve kodu sunumdan indirin. Orada lib klasöründe klasör Komut bulacaksınız. //www.sencha: - http

./sencha generate app 'MyApp' 

Not ./

+1

Bu, Sencha Touch 1.x için dosya üretecektir, 2.x değil. – rdougan

+0

Evet, tabiki. Ben zaten cevabınızı oyladım. Sadece Tommy Maintz'in gördüğü adımları tekrarlamayı öğretiyorum. – ilija139

İlgili konular