[TIMOB-20011] Allow JavaScript files outside the Resources directory to be bundled into the app
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Tooling |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2015-11-17T23:59:32.000+0000 |
Updated | 2015-11-17T23:59:32.000+0000 |
Description
There is a need to allow JavaScript files and possibly other resources to be bundled into an app that live outside the Resources directory. In the case of JavaScript files, special handling needs to be done so that they are AST parsed for Titanium APIs and then encrypted for non-development builds.
This feature would be exposed to CLI hooks. A CLI hook could simply modify the list of jsFiles that were found while recursing the Resources directory before performing the analysis and encryption.
Because we're allowing external files to be bundled, we may need to expose differential build logic. If just injecting files, then it should be fine, but if modifying any existing files will most likely require touching the
currentBuildManifest
state.
Here's a related community thread: https://community.appcelerator.com/topic/4063/cli-hook-copy-resources-to-build/.
No comments