Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1151] Alloy: Support async build hooks

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsModels
LabelsTCSupport, alloy, build, cli, compile, jmk
ReporterFokke Zandbergen
AssigneeUnknown
Created2014-09-28T11:07:23.000+0000
Updated2020-04-27T13:37:42.000+0000

Description

I love using [Alloy build hooks](http://docs.appcelerator.com/titanium/latest/#!/guide/Build_Configuration_File_(alloy.jmk)) through alloy.jmk files. However, I'd like to also start async processes and block the compile process from continuing until they are done.

Example

task("pre:load",function(event,logger,done){
    require('ticons').assets({
      minDpi: 320
    }, done);
});

Solution

The solution could be modeled after the Titanium CLI which already [supports both sync and async hooks](http://docs.appcelerator.com/titanium/latest/#!/guide/Titanium_CLI_Plugins-section-37549163_TitaniumCLIPlugins-ListeningtoHooks).

Comments

  1. Mauro Parra-Miranda 2014-09-29

    [~tlukasavage]: Can you please assign [~fokke] as reporter? The system continues to assign myself as the original reporter when I move this bugs. Thanks.
  2. Bert Grantges 2016-05-06

    [~cng] Bump! We should look into this for an upcoming release.

JSON Source