Skip to content

Instantly share code, notes, and snippets.

@ispern
Created March 25, 2012 07:10
Show Gist options
  • Save ispern/2192058 to your computer and use it in GitHub Desktop.
Save ispern/2192058 to your computer and use it in GitHub Desktop.
WebStorm/PHPStormのCommand Line ToolsでSencha SDK Toolsを使うための設定ファイル
<?xml version="1.0" encoding="UTF-8"?>
<framework xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="schemas/frameworkDescriptionVersion1.1.xsd" name="sencha"
invoke="/usr/local/sencha-sdk-tools/bin/sencha" alias="sencha" enabled="true" version="1">
<command>
<name>app</name>
<help><![CDATA[<div>Usage:</div><div>&nbsp; &nbsp; sencha app [action] [arguments...]</div><div><br></div><div>Description:</div><div>&nbsp; &nbsp; Resolve application dependencies and build for production</div><div><br></div><div>Available actions: (*) denotes required parameter</div><div><br></div><div>&nbsp; &nbsp;create &nbsp; &nbsp;(Alias to 'sencha generate app') Generate a new project with the recommended structure</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; -n, --name &nbsp; &nbsp; * The namespace of the application to create. This will be used as the prefix for all your classes</div><div>&nbsp; &nbsp; &nbsp; -p, --path &nbsp; &nbsp; * The directory path to generate this application to.</div><div>&nbsp; &nbsp; &nbsp; -l, --library &nbsp; The library's build to develop your application with, either 'core' or 'all'. Defaults to 'core'</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;resolve &nbsp; &nbsp;Generate a list of dependencies in the exact loading order for the given application. Note that the resolved paths are relative to the given application's HTML document</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; -u, --uri &nbsp; &nbsp; * The URI to the application's HTML document</div><div>&nbsp; &nbsp; &nbsp; -o, --output &nbsp;* The file path to write the results to in JSON format.</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;build &nbsp; &nbsp;Build the application at the current working directory to the given path</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; -e, --environment &nbsp;* The build environment, either 'testing', 'package', 'production', or 'native'</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + 'testing' is meant for QA prior to production. All JavaScript and CSS Files are bundled, but not minified</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + 'package' creates a self-contained, re-distributable production build that&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;normally runs from local file system without the need for a web server</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + 'production' creates a production build that is normally hosted on a web server and&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;serve multiple clients (devices). The build is offline-capable and has built-in&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OTA delta updating feature</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + 'native' first generates a 'package' build, then packages it as a native&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;application, ready to be deployed to native platforms</div><div>&nbsp; &nbsp; &nbsp; -d, --destination &nbsp; The directory path to build this application to.&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If none given, the default path specified inside 'app.json' is used</div><div>&nbsp; &nbsp; &nbsp; -a, --archive &nbsp; &nbsp; &nbsp; The directory path where all previous builds were stored,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; needed to generate deltas between updates (for production only).&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If none given, the default path specified inside 'app.json' is used</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;</div><div>For more information on a specific action, simply type:</div><div>&nbsp; &nbsp; sencha app [action]</div><div><br></div><div>For example:</div><div>&nbsp; &nbsp; sencha app create</div>]]></help>
<params>action[=create|resolve|build] arguments[=null]</params>
</command>
<command>
<name>fs</name>
<help><![CDATA[<div>Usage:</div><div>&nbsp; &nbsp; sencha fs [action] [arguments...]</div><div><br></div><div>Description:</div><div>&nbsp; &nbsp; A set of useful utility actions to work with files. Most commonly used actions are: concat, minify, delta</div><div><br></div><div>Available actions: (*) denotes required parameter</div><div><br></div><div>&nbsp; &nbsp;concat &nbsp; &nbsp;Concatenate multiple files into one</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; -f, --from &nbsp;* List of files to concatenate, comma-separated</div><div>&nbsp; &nbsp; &nbsp; -t, --to &nbsp; &nbsp;* The destination file to write concatenated content</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;minify &nbsp; &nbsp;Minify a JavaScript file, currently support YUICompressor (default), Closure Compiler and UglifyJS</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; -f, --from &nbsp; &nbsp; &nbsp; &nbsp;* Path to the file to minify</div><div>&nbsp; &nbsp; &nbsp; -t, --to &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Path to the destination file to write minified content to.</div><div>&nbsp; &nbsp; &nbsp; -c, --compressor &nbsp; The name of the compressor to use, can be either: "yuicompressor", "uglifyjs" or "closurecompiler". Defaults to "yuicompressor"</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;delta &nbsp; &nbsp;Generates deltas between two files in JSON format</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; -f, --from &nbsp; * Path to the dictionary file</div><div>&nbsp; &nbsp; &nbsp; -t, --to &nbsp; &nbsp; * Path to the target file to compare to</div><div>&nbsp; &nbsp; &nbsp; -d, --delta &nbsp;* Path to a JSON file to write the delta content to</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;</div><div>For more information on a specific action, simply type:</div><div>&nbsp; &nbsp; sencha fs [action]</div><div><br></div><div>For example:</div><div>&nbsp; &nbsp; sencha fs concat</div>]]></help>
<params>action[=concat|minify|delta] arguments[=null]</params>
</command>
<command>
<name>manifest</name>
<help><![CDATA[<div>Usage:</div><div>&nbsp; &nbsp; sencha manifest [action] [arguments...]</div><div><br></div><div>Description:</div><div>&nbsp; &nbsp; Extract class metadata</div><div><br></div><div>Available actions: (*) denotes required parameter</div><div><br></div><div>&nbsp; &nbsp;create &nbsp; &nbsp;Generate a list of metadata for all classes found in the given directories</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; -p, --path &nbsp; &nbsp;* The directory path(s) that contains all classes</div><div>&nbsp; &nbsp; &nbsp; -o, --output &nbsp;* The file path to write the results to in JSON format.</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;</div><div>For more information on a specific action, simply type:</div><div>&nbsp; &nbsp; sencha manifest [action]</div><div><br></div><div>For example:</div><div>&nbsp; &nbsp; sencha manifest create</div>]]></help>
<params>action[=create] arguments[=null]</params>
</command>
<command>
<name>test</name>
<help><![CDATA[<div>Usage:</div><div>&nbsp; &nbsp; sencha test [action] [arguments...]</div><div><br></div><div>Description:</div><div>&nbsp; &nbsp; Unit testing using Jasmine</div><div><br></div><div>Available actions: (*) denotes required parameter</div><div><br></div><div>&nbsp; &nbsp;run &nbsp; &nbsp;Run Jasmine's unit tests</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; -p, --path &nbsp; &nbsp; * The *absolute* path to the directory that contains all spec files</div><div>&nbsp; &nbsp; &nbsp; -v, --verbose &nbsp; Whether to print extra information per each test run</div><div>&nbsp; &nbsp; &nbsp; -c, --color &nbsp; &nbsp; Whether to use color coding for output</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;</div><div>For more information on a specific action, simply type:</div><div>&nbsp; &nbsp; sencha test [action]</div><div><br></div><div>For example:</div><div>&nbsp; &nbsp; sencha test run</div>]]></help>
<params>action[=run] arguments[=null]</params>
</command>
<command>
<name>generate</name>
<help><![CDATA[<div>Usage:</div><div>&nbsp; &nbsp; sencha generate [action] [arguments...]</div><div><br></div><div>Description:</div><div>&nbsp; &nbsp; Automates the generation of projects and files</div><div><br></div><div>Available actions: (*) denotes required parameter</div><div><br></div><div>&nbsp; &nbsp;app &nbsp; &nbsp;Generate a new project with the recommended structure</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; -n, --name &nbsp; &nbsp; * The namespace of the application to create. This will be used as the prefix for all your classes</div><div>&nbsp; &nbsp; &nbsp; -p, --path &nbsp; &nbsp; * The directory path to generate this application to.</div><div>&nbsp; &nbsp; &nbsp; -l, --library &nbsp; The library's build to develop your application with, either 'core' or 'all'. Defaults to 'core'.</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + Use 'all' if your application make use of almost every class available in the whole framework</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + Use 'core' if your application only make use of a portion of the framework.&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; When you deploy the application, it only includes exactly what it needs.</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;model &nbsp; &nbsp;Generate a Model for an existing project</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; -n, --name &nbsp; &nbsp;* The name of the Model to create</div><div>&nbsp; &nbsp; &nbsp; -f, --fields &nbsp;* The set of fields to add to the Model</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;controller &nbsp; &nbsp;Generate a Controller for an existing project</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; -n, --name &nbsp;* The name of the Controller to create</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;profile &nbsp; &nbsp;Generate a Profile for an existing project</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; -n, --name &nbsp;* The name of the Profile to create</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;</div><div>For more information on a specific action, simply type:</div><div>&nbsp; &nbsp; sencha generate [action]</div><div><br></div><div>For example:</div><div>&nbsp; &nbsp; sencha generate app</div>]]></help>
<params>action[=app|model|controller|profile] arguments[=null]</params>
</command>
<command>
<name>package</name>
<help><![CDATA[<div>Usage:</div><div>&nbsp; &nbsp; sencha package [action] [arguments...]</div><div><br></div><div>Description:</div><div>&nbsp; &nbsp; Packages a Sencha Touch 2 application for native app stores</div><div><br></div><div>Available actions: (*) denotes required parameter</div><div><br></div><div>&nbsp; &nbsp;generate &nbsp; &nbsp;Generates a Packager configuration JSON file</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; -p, --path &nbsp; What to call the configuration file</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;build &nbsp; &nbsp;Packages an app with the given configuration JSON file</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; -p, --path &nbsp; What to call the configuration file</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;run &nbsp; &nbsp;Packages and tries to run the application for the given configuration JSON file</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; -p, --path &nbsp; What to call the configuration file</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;</div><div>For more information on a specific action, simply type:</div><div>&nbsp; &nbsp; sencha package [action]</div><div><br></div><div>For example:</div><div>&nbsp; &nbsp; sencha package generate</div>]]></help>
<params>action[=generate|build|run] arguments[=null]</params>
</command>
</framework>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment