[ALOY-372] Support 'alloy generate' command for widget components
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-04-15T16:51:29.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 1.4.0, 2014 Sprint 08 |
Components | Tooling |
Labels | notable, qe-closed-3.3.0, qe-testadded |
Reporter | Benjamin Hatfield |
Assignee | Tim Poulsen |
Created | 2012-11-07T23:02:42.000+0000 |
Updated | 2014-05-30T15:29:28.000+0000 |
Description
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.
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 directoryalloy 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/stylesalloy 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/stylesalloy generate controller biff
to create an app-level (not widget-level) controller. Files are created in the app directories, not widget directoriesPR merged
Verified the FIXED with: Appc-Studio:3.3.0.201405080918 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.