1. Installation
First of all, you always go to the official website to download ext-6.2.0-gpl.zip and install the Sencha CMD tool to manage the ExtJs project. After the ext-6.2.0-gpl.zip is downloaded and decompressed, put it aside and use it later.
Sencha CMD is installed after the download is complete. If you want to support extjs4.2 installation, just check it.
The cmd sencha interface appears and the installation is successful!
2. Build
cd to the directory where your ExtJs is located or hold down the shift key in your unzipped directory to open the command window
Enter the command: sencha -sdk [ExtJs6.0 folder address] generate app [project name] [project path]
Such as:
- sencha -sdk ext-6.2.0 generate app App MyApp
After that, a myApp folder will be created in the file,
directory resolution
The development source code directory of app extjs, including the application model (model), view (view), data (store), controller controller and storage definition directory.
build extjs and source compressed and optimized releasable directory
classic PC-side code
build extjs and source compressed and optimized releasable directory
classic PC-side code
ext extjs sdk including source code and styles
modern mobile phone code
Overrides inherits the ext component to extend the custom method
packages theme or code
resources contains CSS and image resources required by the application.
sass The directory of the scss style file of this application
app.js The main entry javascript file of the application.
app.json js configuration file
bootstrap.js system initialization and style class loading file
index.html application HTML entry file
app.js The main entry javascript file of the application.
app.json js configuration file
bootstrap.js system initialization and style class loading file
index.html application HTML entry file
3. Deploy and run
cd to the directory where you just built the directory (MyApp) or hold down the shift key in this directory to open the cmd command
input the command:
- sencha app watch
Access current projects
from https://blog.csdn.net/chenshuzhuo/article/details/70210550