Top 10 Ext JS Sencha Cmd commands
1) sencha generate app ProjectX ../ProjectX
ProjectX is the name of your application and ‘../ProjectX’ the directory where you would like it to be stored, remember unix ../ brings you one level up.
2) sencha app watch
Introduced in version 4, its like the Watchable Interface implementation of java in Ext JS, it watches all your files for changes and compiles the code.
3) sencha generate controller MyController and model City id:int
This command generates a controller and a model.
4) compass watch
To watch for changes to your .scss files, generates css files on change detection.
5) sencha generate model City id:int,name then app build
Create a Model with Id, and City as attributes or fields and build the app.
6) sencha app refresh
Use it if you are not using the watch command, bootstrap.js is updated using it.
7) sencha @configFile.sencha
To externalize configuration parameters as a java config file,each line is taken to be a command line argument, unless that line begins with “#”, in which case it is skipped
8) sencha app build production
To minify the application use it when you’re ready to deploy the application and want to greatly reduce the file size and increase speed.
9) sencha generate form -n CityForm -f name,city,zip
Generates a view that extends ‘Ext.form.Panel’ with the specified fields
10) sencha diag show
Comments
Post a Comment