ExtJS Sencha cmd Create project and compile project

Source: Internet
Author: User

One: Create a project

The Sencha SDK tool2.0 cannot create an API sencha-touch-2.2.1 project and requires senchacmd instead of the Sencha SDK tool, with the following steps:

1, download and install Senchacmd, address:

Http://www.sencha.com/products/sencha-cmd/download

2, all the way next, after installation, into CMD, typing: Sencha, showing some information about Sencha, indicating Senchacmd installation success

3, build the project using Senchacmd

3.1 Download sencha-touch-2.2.1, go to the official website to fill in the email, the mailbox will receive

3.2 After the download is complete, enter the sencha-touch-2.2.1 directory under DOS, for example: My directory is as follows:

D:\sencha\IUCD\WebRoot\TOUCH-2.2.1\

Note: Sencha cmd must be run in the SDK directory or the app directory

3.3 Use the Senchacmd command to generate the project, as follows:

Sencha Generate App Myapp/path/to/myapp

After running, it will be in D:/path/to/myapp

Two: Compile the project

The steps are as follows:

1, at the command prompt, enter the MyApp subdirectory of the disk directory after extracting the Sencha touch2.2.1 Framework's compressed package

Three forms of 2,build compilation: Production, testing, package

Testing: Build an application that is in beta, all JavaScript script files are copied to the application as is, and the script files are not compressed to facilitate debugging by the developer.

Package: Build a locally-run application that allows developers to open the application directly from the file system without using a Web server

Production: Build an application that requires a Web server to run, supports access to the application using a variety of devices, and is an application that can be used offline

Native: First build an application that can be opened directly in the file system, and then package it as an application that can run on a native Web server.

>sencha app build production//packaged mobile phone, computer-side can be used in the form
>sencha app Build testing//Packaged Beta
>sencha App Build Package//pack to mobile side
>sencha Package Run Package.json//is primarily an apk for Android or iphone generation
>sencha app Build-e native

ExtJS Sencha cmd Create project and compile project

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.