Sencha cmd Common Command Summary

Source: Internet
Author: User

First, Sencha generate: Automatically generate projects or code

1, Sencha generate app project name generation Path: Build a new ExtJS project

Note: The above command will download the trial version of the EXT code to your local, if you have downloaded to the local, you need to use the-SDK command to specify the local ext directory to build your application, as follows:

SENCHA-SDK/This is the path to your SDK path/Generate app MyApp your app. such as: SENCHA-SDK c:sencha5.0.0 generate app Oasystem D:\oasys

2, Sencha generate model name all fields, such as: Sencha Generate model User Name:string,password:string,age:int to generate a containing name, Password, age three fields of user model class TR

3. Sencha Generate controller users: Generate a controller named users (Controller folder is obsolete in Ext5, and the definition of controller is merged into view. So this command is also obsolete in EXT5 and only applies to EXT4 versions.

Sencha App Build: Building Projects (default build into production environment projects), or publishing projects

1, Sencha app build production: Built for production environment project

2, Sencha app build testing: Built as a test environment project, all the JS code and CSS files will be bound together, but does not compress the file for debugging.

3. Sencha App Build Package: Create a stand-alone, reusable engineering environment that is typically run under a local file system and does not need to be put into a server.

4, Sencha app build native: Package Our program cost application, ready to test on the real machine. (installable program packaged as a mobile application)

Sencha Network Services container:
----------------------------------------------------
Use the Sencha Web Start command to open your service. Services allow you to use a local application as a network service.
This command has 1841 ports as the current access port, and if you want to stop the service, execute the following command: Sencha Web stop or CTRL + C to end the service
to access your service, you only need to perform the following path in the browser:
http:// LOCALHOST:1841&NBSP
When we visit, we can see the default generated Web page as follows:
If you do not want to use port 1841, you can set the port number at execution time: Sencha-port 8080 Web start

Add a new model
--------------------------------------------
Use the Sencha Generate Model command.

Add a new controller
-----------------------------------------------------
Similar to the above command, perform Sencha generate Controller The

adds a view
------------------------------
also executes Sencha generate view Someview

Customized constructor
-----------------------------------------
Now a variety of configuration options can be used under the. sencha/app/sencha.cfg folder, In the case of only one page, you can ignore the ". Sencha/workspace" Configuration folder

classpath classpath
----------------------------------
Sencha The App Build command is designed to find out where your application code is all dependent on the App.classpath configuration, which is under the ". Sencha/app/sencha.cfg" folder. The default value is

App.classpath=${app.dir}/app,${app.dir}/app.js



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.