[ALOY-537] Create internal source map for generated files from alloy compile
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2013-03-08T21:18:36.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 1.1.0, 2013 Sprint 05 |
Components | XML |
Labels | n/a |
Reporter | Tony Lukasavage |
Assignee | Unknown |
Created | 2013-02-25T18:57:45.000+0000 |
Updated | 2018-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...
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 atPROJECT_DIR/.map/Resources/alloy/controllers/index.js.map
or another example, the standard app.js file would have its map atPROJECT_DIR/.map/Resources/app.js.map
Need more information