{"issue":{"milestone":null,"title":"Add/Ignore Filenames in Merged JS Content","created_at":"2011-12-29T18:40:36Z","user":{"login":"brombomb","id":1136944,"url":"https://api.github.com/users/brombomb","avatar_url":"https://secure.gravatar.com/avatar/80a18625d95a4552dfba7c057866af52?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"80a18625d95a4552dfba7c057866af52"},"labels":[{"name":"change","url":"https://api.github.com/repos/documentcloud/jammit/labels/change","color":"1a8236"},{"name":"wontfix","url":"https://api.github.com/repos/documentcloud/jammit/labels/wontfix","color":"ffffff"}],"updated_at":"2011-12-30T14:19:18Z","state":"closed","id":2681594,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":"2011-12-30T14:19:18Z","html_url":"https://github.com/documentcloud/jammit/issues/213","body":"Our site uses a large number of JavaScript files.  Debugging is hard enough as it stand with all the scripts on one line.  In my old version (before jammit) I had put in the filename in comments with a line break and then the contents of the merged file.  I understand it's not fully compressed now, but I don't mind the few extra bytes for some added readability.  Also IE 7/8 seems to have issues with long lines.\r\n\r\nExample:\r\n\r\n    /*file1.js*/\r\n    function fn1(){};\r\n    /*file2.js*/\r\n    function fn2(){};\r\n\r\nI run this command before running jammit on the command line:\r\n\r\n    // Clean Files with a ; and /* {FILENAME} */\r\n    for file in $(find . -type f -name '*.js'); do echo \";\" >>tempfile; echo \"/*\" >>tempfile; echo $file >>tempfile; echo \"*/\" >>tempfile; cat $file >>tempfile; mv tempfile $file.clean; done\r\n\r\nWhich allows me to add a trailing semicolon (our code is not lint happy), and then the file name to every file.  jammit currently strips this out.","number":213,"url":"https://api.github.com/repos/documentcloud/jammit/issues/213","comments":1,"assignee":null},"action":"closed"}