alloy-smelter

Helper commands for Appcelerator Titanium MVC Framework Alloy project app.

Stats

stars šŸŒŸissues āš ļøupdated šŸ› created šŸ£size šŸ‹ļøā€ā™€ļø
102Apr 30, 2015Sep 10, 2014Minified + gzip package size for alloy-smelter in KB

Readme

alloy-smelter

Helper commands for Appcelerator Titanium MVC Framework Alloy project app.

Why alloy-smelter?

I frequently the controller on move, rename and remove.

Installation

$ [sudo] npm install -g alloy-smelter

Installing edge version.

[sudo] npm install -g git://github.com/k0sukey/alloy-smelter.git

Usage

$ smelter <command> [options]

help

Display usage information.

$ smelter --help

generate

Pass to Alloy generate command(controller, view, style).

$ smelter generate controller foo
$ smelter generate view bar
$ smelter generate style baz
--template option

Using custom template option. Please prepare a template in process.env.HOME/.smelter/template/someWindow/controller.js, view.xml, style.tss.

$ smelter generate controller foo -T someWindow
$ smelter generate view bar -T someWindow
$ smelter generate style baz -T someWindow

copy

Bulk copy for controller, view and style files.

$ smelter copy foo bar
$ smelter copy foo bar/baz

move

Bulk move or rename for controller, view and style files.

$ smelter move foo bar
$ smelter move foo bar/baz

remove

Bulk remove for controller, view and style files.

$ smelter remove foo
$ smelter remove bar/baz

i18n

Internationalization dir/file management.

add
$ smelter i18n add en
remove
$ smelter i18n remove en

build

Pass to Titanium build command.

$ smelter build
$ smelter build iPhone5
$ smelter build -t '-p ios --retina --tall'
--no-complie option

Avoid Alloy compile in Titanium build. Temporarily remove the ti.alloy plugin. Please describe yourself to tiapp.xml in <plugin>ti.alloy</plugin>, If it does not return.

$ smelter build --no-compile
$ smelter build iPhone5 --no-compile
$ smelter build -t '-p ios --retina --tall' --no-compile

preset

Launch $EDITOR preset json file. Preset option using for build command.

$ smelter preset
default preset
{
    "iPhone5": "-p ios -Y iphone --retina --tall",
    "iPhone4": "-p ios -Y iphone --retina",
    "iPad": "-p ios -Y ipad --retina --tall"
}

install

Bulk install titanium, alloy cli and Titanium SDK.

$ smelter install

clean

Removes previous build and Resources directories.

$ smelter clean

stats

Statistics a Alloy project.

$ smelter stats

ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¬ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
ā”‚ Project files    ā”‚                    controllers:   1 ā”‚
ā”‚                  ā”‚                          views:   3 ā”‚
ā”‚                  ā”‚                         styles:   1 ā”‚
ā”‚                  ā”‚                         models:   1 ā”‚
ā”œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¼ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¤
ā”‚ View nodes       ā”‚                          Label:   8 ā”‚
ā”‚                  ā”‚                      TextField:   4 ā”‚
ā”‚                  ā”‚                         Window:   3 ā”‚
ā”‚                  ā”‚                       MenuItem:   3 ā”‚
ā”‚                  ā”‚                           View:   3 ā”‚
ā”‚                  ā”‚                     HeaderView:   2 ā”‚
ā”‚                  ā”‚                       ListView:   2 ā”‚
ā”‚                  ā”‚                      Templates:   2 ā”‚
ā”‚                  ā”‚                   ItemTemplate:   2 ā”‚
ā”‚                  ā”‚                    ListSection:   2 ā”‚
ā”‚                  ā”‚                       ListItem:   2 ā”‚
ā”‚                  ā”‚                           Menu:   1 ā”‚
ā”‚                  ā”‚               NavigationWindow:   1 ā”‚
ā”‚                  ā”‚                      TabbedBar:   1 ā”‚
ā”‚                  ā”‚                         Labels:   1 ā”‚
ā”œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¼ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¤
ā”‚ Style selectors  ā”‚                        element:   9 ā”‚
ā”‚                  ā”‚                             id:   7 ā”‚
ā”‚                  ā”‚                          class:   2 ā”‚
ā”œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¼ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¤
ā”‚ Using properties ā”‚                          title:   8 ā”‚
ā”‚                  ā”‚                         height:   7 ā”‚
ā”‚                  ā”‚                          width:   6 ā”‚
ā”‚                  ā”‚                         bottom:   6 ā”‚
ā”‚                  ā”‚                           left:   5 ā”‚
ā”‚                  ā”‚                         todoId:   4 ā”‚
ā”‚                  ā”‚                          color:   4 ā”‚
ā”‚                  ā”‚                            top:   4 ā”‚
ā”‚                  ā”‚                         bindId:   4 ā”‚
ā”‚                  ā”‚                          right:   3 ā”‚
ā”‚                  ā”‚                backgroundColor:   3 ā”‚
ā”‚                  ā”‚                       template:   2 ā”‚
ā”‚                  ā”‚                       hintText:   2 ā”‚
ā”‚                  ā”‚                           name:   2 ā”‚
ā”‚                  ā”‚            defaultItemTemplate:   2 ā”‚
ā”‚                  ā”‚                          value:   2 ā”‚
ā”‚                  ā”‚                              x:   2 ā”‚
ā”‚                  ā”‚                              y:   2 ā”‚
ā”‚                  ā”‚            windowSoftInputMode:   1 ā”‚
ā”‚                  ā”‚             backgroundGradient:   1 ā”‚
ā”‚                  ā”‚                           type:   1 ā”‚
ā”‚                  ā”‚                     startPoint:   1 ā”‚
ā”‚                  ā”‚                    exitOnClose:   1 ā”‚
ā”‚                  ā”‚                          index:   1 ā”‚
ā”‚                  ā”‚                       endPoint:   1 ā”‚
ā”‚                  ā”‚                         colors:   1 ā”‚
ā”‚                  ā”‚                   paddingRight:   1 ā”‚
ā”‚                  ā”‚                 selectionStyle:   1 ā”‚
ā”‚                  ā”‚                      textAlign:   1 ā”‚
ā”‚                  ā”‚                  verticalAlign:   1 ā”‚
ā”‚                  ā”‚                       editable:   1 ā”‚
ā”‚                  ā”‚                 separatorColor:   1 ā”‚
ā”œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¼ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¤
ā”‚ Unique colors    ā”‚                         {done}:   2 ā”‚
ā”‚                  ā”‚                           #fff:   1 ā”‚
ā”‚                  ā”‚                        #fcfcfc:   1 ā”‚
ā”‚                  ā”‚                        #bcbac1:   1 ā”‚
ā”‚                  ā”‚                        #f6f6f6:   1 ā”‚
ā”‚                  ā”‚                           #333:   1 ā”‚
ā”‚                  ā”‚                        #d9d9d9:   1 ā”‚
ā”œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¼ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¤
ā”‚ Event type       ā”‚                          click:   8 ā”‚
ā”‚                  ā”‚                       dblclick:   2 ā”‚
ā”‚                  ā”‚                          swipe:   2 ā”‚
ā”‚                  ā”‚                         return:   2 ā”‚
ā”œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¼ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¤
ā”‚ Event listener   ā”‚                    doToggleall:   2 ā”‚
ā”‚                  ā”‚                       doToggle:   2 ā”‚
ā”‚                  ā”‚                         doEdit:   2 ā”‚
ā”‚                  ā”‚                       doDelete:   2 ā”‚
ā”‚                  ā”‚                       doEdited:   2 ā”‚
ā”‚                  ā”‚                          doAll:   1 ā”‚
ā”‚                  ā”‚                       doActive:   1 ā”‚
ā”‚                  ā”‚                    doCompleted:   1 ā”‚
ā”‚                  ā”‚                          doTab:   1 ā”‚
ā”œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¼ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¤
ā”‚ Data binding     ā”‚                 dataCollection:   2 ā”‚
ā”‚                  ā”‚                  dataTransform:   2 ā”‚
ā”‚                  ā”‚                     dataFilter:   2 ā”‚
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”“ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜

License

The MIT License (MIT) Copyright (c) 2014 Kosuke Isobe

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.