Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16343] CLI: Add hooks to "create" command

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-02-28T00:47:22.000+0000
Affected Version/sn/a
Fix Version/s2014 Sprint 04, 2014 Sprint 04 Core, Release 3.2.3, Release 3.3.0
ComponentsCLI
Labelscli, qe-closed-3.2.3, qe-testadded
ReporterChris Barber
AssigneeChris Barber
Created2014-01-30T00:06:46.000+0000
Updated2014-03-24T20:21:15.000+0000

Description

Add the following hooks to the "create" command: * create.pre * create.pre.platform.<PLATFORM_NAME> * create.post.platform.<PLATFORM_NAME> * create.post * create.finalize

Attachments

FileDateSize
superman.js2014-01-30T00:16:18.000+00002777

Comments

  1. Chris Barber 2014-01-30

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5285 3.2.x pull request: https://github.com/appcelerator/titanium_mobile/pull/5286
  2. Chris Barber 2014-01-30

    To test: 1) download the attached superman.js into a new folder 2) add the new folder to the hooks paths: ti config paths.hooks -a /path/to/new/folder/containing/superman 3) create a new project: ti create 4) observe the hooks being fired
  3. Olga Romero 2014-03-24

    Tested and verified hooks on "create" command. Appcelerator Studio, build: 3.2.3.201403190645 Titanium SDK, build: 3.2.3.v20140324114345 Node.JS Version: v0.10.13 NPM Version: 1.3.2 ├── acs@1.0.14 ├── alloy@1.3.1 ├── npm@1.3.2 ├── titanium@3.2.1 └── titanium-code-processor@1.1.0
       [EVENT-HOOK] create.pre [app]
       [EVENT-HOOK] create.pre.platform.iphone [app]
       [EVENT-HOOK] create.post.platform.iphone [app]
       [EVENT-HOOK] create.post [app]
       [EVENT-HOOK] create.finalize [app]
       

JSON Source