Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20011] Allow JavaScript files outside the Resources directory to be bundled into the app

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsTooling
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2015-11-17T23:59:32.000+0000
Updated2015-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/.

Comments

No comments

JSON Source