1 var JSBuilderPath = system.cwd + '/lib/JSBuilder/';
3 load(JSBuilderPath + 'src/Loader.js');
4 Loader.setBasePath(JSBuilderPath + 'src');
7 'Ext', 'Cmd', 'Filesystem', 'Platform', 'Cli', 'Logger', 'Project', 'Target', 'Package', 'Build'
11 * @class Ext.CommandDispatcher
13 * Dispaches to the relevant Cli subclass from the command line 'sencha' command. e.g.
14 * sencha generate xyz is dispatched to whichever Ext.Cli subclass registered itself to
15 * handler the 'generate' command (Ext.generator.Factory in this case).
17 Ext.CommandDispatcher = {
20 dispatch: function(module, args) {
21 new this.types[module]({args: args});
25 Ext.regDispatchable = function(name, constructor) {
26 Ext.CommandDispatcher.types[name] = constructor;
29 load('src/Generator.js');
30 load('src/generators/app/Application.js');
31 load('src/generators/controller/Controller.js');
32 load('src/generators/model/Model.js');
34 var args = system.arguments,
37 Ext.CommandDispatcher.dispatch(module, args.slice(1));