Titanium JIRA Archive
Alloy (ALOY)

[ALOY-537] Create internal source map for generated files from alloy compile

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusResolved
ResolutionFixed
Resolution Date2013-03-08T21:18:36.000+0000
Affected Version/sn/a
Fix Version/sAlloy 1.1.0, 2013 Sprint 05
ComponentsXML
Labelsn/a
ReporterTony Lukasavage
AssigneeUnknown
Created2013-02-25T18:57:45.000+0000
Updated2018-03-07T22:25:50.000+0000

Description

After updating uglifyjs to version 2.x, Alloy needs to use its source mapping capability to create an internal map between original "app" folder code and the generated "Resources" folder code. This ticket will at the very least encompass what is necessary to do this for controllers. This or future tickets may cover the topics of adapters, models, etc...

Comments

  1. Tony Lukasavage 2013-03-08

    Source maps are now generated for app.js and all controllers. The maps are stored in the "PROJECT_DIR/.map" folder and follow the pattern FILENAME_RELATIVE_TO_PROJECT_DIR.map. So for example: PROJECT_DIR/Resources/alloy/controllers/index.js would have its source map located at PROJECT_DIR/.map/Resources/alloy/controllers/index.js.map or another example, the standard app.js file would have its map at PROJECT_DIR/.map/Resources/app.js.map
  2. Anshu Mittal 2013-05-14

    Need more information

JSON Source