{ "id": "120911", "key": "TIMOB-15488", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "15939", "description": "2014 Sprint 07", "name": "2014 Sprint 07", "archived": true, "released": true, "releaseDate": "2014-04-11" }, { "id": "15942", "description": "2014 Sprint 07 Tooling", "name": "2014 Sprint 07 Tooling", "archived": true, "released": true, "releaseDate": "2014-04-11" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-04-04T17:27:04.000+0000", "created": "2013-10-08T11:36:42.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "build", "cli", "mobileweb", "production", "qe-closed-3.3.0", "qe-testadded", "titanium-cli" ], "versions": [], "issuelinks": [ { "id": "37022", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "129307", "key": "AC-1082", "fields": { "summary": "Mobile Web Production contains unnecessary and duplicate files", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-07-31T18:05:52.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "When building for mobile web using the CLI with the following command, the resulting build contains minified JS files in addition to their uncompressed counterpart (*.js.uncompressed.js):\r\n\r\n{code}titanium build -p mobileweb -D production{code} \r\n\r\nAt present, in order to ready a build for distribution, all uncompressed files must be deleted manually or via script.", "attachment": [], "flagged": false, "summary": "Mobile Web: CLI mobile web production builds include *.js.uncompressed.js files in addition to minified versions", "creator": { "name": "goodlime", "key": "goodlime", "displayName": "Julian Fraser", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "goodlime", "key": "goodlime", "displayName": "Julian Fraser", "active": true, "timeZone": "America/New_York" }, "environment": "CLI version 3.1.2\r\nTitanium SDK version 3.1.3.GA\r\nMac OS X 10.8.4", "comment": { "comments": [ { "id": "274149", "author": { "name": "goodlime", "key": "goodlime", "displayName": "Julian Fraser", "active": true, "timeZone": "America/New_York" }, "body": "The following command automates the delete for all files in the current directory matching all files ending with the uncompressed extension. I'm assuming the CLI production build process should be doing this for you though.\r\n\r\n{code}find . -name \\*.js.uncompressed.js -type f -delete{code} ", "updateAuthor": { "name": "goodlime", "key": "goodlime", "displayName": "Julian Fraser", "active": true, "timeZone": "America/New_York" }, "created": "2013-10-08T11:46:13.000+0000", "updated": "2013-10-08T11:47:19.000+0000" }, { "id": "275137", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It's worth noting that the uncompressed files are not used in the final app...they are there for reference only and have no impact on performance.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-15T15:35:22.000+0000", "updated": "2013-10-15T15:35:22.000+0000" }, { "id": "275140", "author": { "name": "goodlime", "key": "goodlime", "displayName": "Julian Fraser", "active": true, "timeZone": "America/New_York" }, "body": "Understood, which is why simply deleting the uncompressed file does not break the app.\r\n\r\nHowever in this particular use case, I am building a packaged app for Firefox OS, and therefore the inclusion of the uncompressed files adds unwanted bloat to the final package.", "updateAuthor": { "name": "goodlime", "key": "goodlime", "displayName": "Julian Fraser", "active": true, "timeZone": "America/New_York" }, "created": "2013-10-15T15:44:22.000+0000", "updated": "2013-10-15T15:44:22.000+0000" }, { "id": "275144", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "The original plan was to add an option to the tiapp.xml that allowed you to disable the saving of the uncompressed files. We never got around to adding this feature. :( I do agree that we need to fix it, but I want to fix it properly and not using some hack. In the meantime, you can use a post-compile build hook that removes the uncompressed files.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-10-15T16:14:50.000+0000", "updated": "2013-10-15T16:14:50.000+0000" }, { "id": "299930", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5582\n3_2_X_hybrid pull request: https://github.com/appcelerator/titanium_mobile/pull/5583", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-04-04T17:27:00.000+0000", "updated": "2014-04-04T17:27:00.000+0000" }, { "id": "303712", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and verified no *.js.uncompressed.js files in the build folder.\r\nMac osx 10.9.2 Mavericks\r\nAppcelerator Studio, build: 3.3.0.201405011408\r\nTitanium SDK, build: 3.3.0.v20140505115416\r\nNode.JS Version: v0.10.13\r\nNPM Version: 1.3.2\r\n acs@1.0.14\r\n alloy@1.4.0-dev\r\n npm@1.3.2\r\n titanium@3.3.0-dev\r\n titanium-code-processor@1.1.1", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-06T21:57:12.000+0000", "updated": "2014-05-06T21:57:12.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }