[TIMOB-16343] CLI: Add hooks to "create" command
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-02-28T00:47:22.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2014 Sprint 04, 2014 Sprint 04 Core, Release 3.2.3, Release 3.3.0 |
Components | CLI |
Labels | cli, qe-closed-3.2.3, qe-testadded |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2014-01-30T00:06:46.000+0000 |
Updated | 2014-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
File | Date | Size |
---|---|---|
superman.js | 2014-01-30T00:16:18.000+0000 | 2777 |
Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5285 3.2.x pull request: https://github.com/appcelerator/titanium_mobile/pull/5286
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 firedTested 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