Skip to content

towerhe/sencha-command

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sencha Command

Sencha Command is a set of utilities that helps automate many parts of project development

Sencha Touch version: 1.1.0

Generators

Applications

To generate a new application:

./sencha generate app MyApp /optional/path/to/generated/app

Models

To generate a model:

./sencha generate model User id:int name:string active:boolean

This creates a model called "User" with the given fields. It also creates an empty Jasmine spec file for the model, and inserts script tags for the new files into the appropriate index.html file.

Stores

To generate a store:

./sencha generate store User

This creates a store called "User" based on the model "User".

Controllers

To generate a controller:

./sencha generate controller users list create update

This creates a controller called 'users', which has actions 'list', 'create' and 'update'. It also creates an empty Jasmine spec file for the controller, and inserts script tags for the new files into the appropriate index.html file.

Builder

The builder builds your application into a deployment-ready folder by combining all JavaScript into a single file and minifying it. Building is simple:

./sencha build

The built application is placed in the 'deploy' folder.

Coverage

Runs code coverage analysis on your application based on the application's test suite. Code coverage data is saved to the 'coverage' folder.

./sencha coverage

Autotest

This doesn't exist yet, but will look like the following:

./sencha autotest

Test

This doesn't exist yet, but will look like the following:

./sencha test

Update

This doesn't exist yet, but will look like the following:

./sencha update /path/to/sencha/sdk

About

sencha Command

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.9%
  • Other 0.1%