Official documents
- Introduction to Sencha CMD
- Using Sencha Cmd with Ext JS 4.2+
- compiler-friendly Code Guidelines
- Workspaces in Sencha CMD
Environmental requirements
- Java run-time Environment or JRE, version >=6.0.
- Ruby
- Sencha CMD
- EXT JS SDK
Download installation Environment
Sencha CMD Download
The ExtJS version should correspond to the Sencha cmd version, or something will go wrong.
Configure the Environment:
My use of chocolatey tools, easy to automatically help you install environment variables, convenient and fast. Chocolatey is the next command-line package management software for Windows, which simply says that this is the apt-get of Windows. Get used to the Linux operation mode and want to use it to manipulate Windows. Chocolatey This package management system now contains nearly 500 common software.
Chocolatey official website Download
Copy the above code to the manager to run, to run as an administrator, or it will be wrong, the pro-test error. Installation will take some time to wait.
After you have installed the Shutdown manager, in the Open manager, enter SENCHA-V to show whether this
The display is not the one that represents no installation.
Then open the download package page, search directly in the search box, JRE and Ruby and Devkit, the installation method is to copy the corresponding command code, the command management system to paste the carriage return, he will automatically help you install and help you configure. How convenient, there are other packages of environmental construction can also use this.
After the installation, come and see if there is any installation.
Step One: Install the JRE or JDK (contains the JRE after the JDK is installed)
My Computer-right-click Properties--Advanced system settings--environment variables
To add or modify an environment variable:
1. Added: Java_home
2. Modify: PATH
The Path property already exists and can be edited directly. The function is used to configure the path, simplifying the input of the command with a value of:%java_home%\bin.
3. Add Classpath
For the path of the Java class at compile time, note that the two values are set here (.;) Indicates that the JVM searches the current directory first. The value is:.; %java_home%\lib\tools.jar.
After restarting your computer, determine if the JDK is installed by the relevant commands.
Open DOS Command Window input: Java
Open DOS Command Window input: java-varsion
Open DOS Command Window input: Javac
Step two: Test whether Ruby is installed successfully
Input ruby-v in command line
If the ruby version number is correctly printed, it's OK.
Install the theme pack, open the DOS command box input: Gem install Compass
Step three: Test whether the DevKit has been installed successfully
Command line, enter the following command:
The results appear as follows:
fetching:rdiscount-1.6. 8. Gem (%) temporarily enhancing PATH to include DevKit ... Building native extensions. while ... Successfully installed Rdiscount-1.6. 8 1 for rdiscount-1.6. 8 for rdiscount-1.6. 8...
After that, you're done, and you'll create the project below.
Before downloading the good SDK, create the app
Method: Sencha-sdk/path/to/framework Generate app MyApp My-app
/path/to/framework This means the SDK address, the SDK address path you extracted.
Generate app is essential
MyApp is the project name
My-app is the file name
Here just tangled up my one hours to solve, has not been created successfully.
My method Step: Install in the specified installation directory
Opened here is not open, the reason is cross-domain, so can not open, open the way there are many kinds of, may use IIS can also use other servers, hanging on the local server can be opened. Sencha CMD has its own built-in server, browse the way to see the picture
Command: Sencha app watch
Then look at the file size, very large, if put on the server open will be very slow, so we can compile.
Command: Sencha app Build
The same way as above.
Good tired, to here, did not pass the Bo Master agreed forbidden reprint.
Sencha cmd installation creates the project with the compilation, in extra detail.