Closed Bug 645170 Opened 14 years ago Closed 14 years ago

Do not check in concatenated JS files

Categories

(Websites Graveyard :: markup.mozilla.org, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: wenzel, Assigned: adam)

Details

(Whiteboard: [qa-])

markApp.js has over 7000 (!) LOC and is very hard to review. Keep the actual app code in there, but please put JS libraries like socialShare, and especially third-party apps like jQuery selectBox into separate files. Since all is concatenated and minified anyway, there's no reason to squeeze things into a single file, and it'll make code reuse very hard down the road. From my guestimations, this will reduce the size of that file to 2000 LOC. That's still big, less than a third of the current size.
Assignee: nobody → adam
Argh, that's the concatenated code, isn't it? Please add those files to a .gitignore file and don't check them in. You are free to keep the .min files in there though since those are the ones used by the app and it'd simplify deployment.
Summary: Put JS libraries into separate files → Do not check in concatenated JS files
Remove markApp.js from the repo.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Verified markApp.js has been removed from the repo. Does /ffdemo/templates_orig/home.html need to be updated to reflect this? markup mbrandt$ grep -r "markApp.js" . Binary file ./.git/index matches ./ffdemo/templates_orig/home.html:<script src="/media/assets/js/vendor/jquery.markApp.js" type="text/javascript"></script> host-4-30:markup
Whiteboard: [qa-]
Thanks Adam! QA Verified.
Status: RESOLVED → VERIFIED
Product: Websites → Websites Graveyard
You need to log in before you can comment on or make changes to this bug.