Titanium JIRA Archive
Alloy (ALOY)

[ALOY-372] Support 'alloy generate' command for widget components

GitHub Issuen/a
Resolution Date2014-04-15T16:51:29.000+0000
Affected Version/sn/a
Fix Version/sAlloy 1.4.0, 2014 Sprint 08
Labelsnotable, qe-closed-3.3.0, qe-testadded
ReporterBenjamin Hatfield
AssigneeTim Poulsen


It might be useful to have the 'alloy generate' command support creating widget components, such as alloy generate controller button -o app/widgets/foo alloy generate view label -o app/widgets/foo And models and migrations if/when that happens.


  1. Tim Poulsen 2014-03-24

    PR: https://github.com/appcelerator/alloy/pull/353 Functional test

    In an Alloy project's directory, issue these commands:

    alloy generate widget foo to create a widget. Your project should now have an app/widgets/foo directory

    alloy generate controller bar --widgetname foo to create a controller in the widget. You should see "bar" files in app/widgets/foo/views, app/widgets/foo/controllers, and app/widgets/foo/styles

    alloy generate view baz --widgetname foo to create a view in the widget. You should see "baz" files in app/widgets/foo/views and app/widgets/foo/styles

    alloy generate controller biff to create an app-level (not widget-level) controller. Files are created in the app directories, not widget directories

  2. Tim Poulsen 2014-04-15

    PR merged
  3. Priya Agarwal 2014-05-12

    Verified the FIXED with: Appc-Studio: sdk:3.3.0.v20140509180608 acs:1.0.14 alloy:1.4.0-dev npm:1.3.2 titanium:3.3.0-dev titanium-code-processor:1.1.1 xcode:5.1.1 Verified using the below mentioned commands. Working as expected. Hence Closing the issue.

JSON Source