[ALOY-1151] Alloy: Support async build hooks
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Medium |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Models |
Labels | TCSupport, alloy, build, cli, compile, jmk |
Reporter | Fokke Zandbergen |
Assignee | Unknown |
Created | 2014-09-28T11:07:23.000+0000 |
Updated | 2020-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)) throughalloy.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
- 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.
- Bert Grantges 2016-05-06 [~cng] Bump! We should look into this for an upcoming release.