Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Strip tests, examples, and tgzs from distribution #1347

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rmg
Copy link
Member

@rmg rmg commented Jun 11, 2015

Trims about 1MB off the size of strong-arc-*.tgz, bringing it back
down to just below 10MB:

  • strip tests
  • strip examples
  • *.less source files
  • strip assets archives

TODO:

  • look for unused/duplicate client-side deps
  • strip unused images
  • ???

@listepo
Copy link

listepo commented Dec 17, 2015

+1

@rmg rmg force-pushed the honey-i-shrunk-the-ark branch from bafd424 to c5b84a9 Compare January 7, 2016 21:46
@rmg rmg force-pushed the honey-i-shrunk-the-ark branch from c5b84a9 to cd09468 Compare January 16, 2016 01:41
@rmg
Copy link
Member Author

rmg commented Jan 16, 2016

@jtary @anthonyettinger here's some low hanging fruit..

$ du -sh client/www/scripts/vendor/jquery-ui/themes
4.4M    client/www/scripts/vendor/jquery-ui/themes

Probably don't need to ship all the themes!

@rmg rmg force-pushed the honey-i-shrunk-the-ark branch 2 times, most recently from ed8e298 to af0a5ec Compare January 16, 2016 20:12
@rmg
Copy link
Member Author

rmg commented Jan 16, 2016

The published tarball for strong-arc-1.8.7 is 10M. So far this PR brings it down to 7.8M.

@rmg
Copy link
Member Author

rmg commented Jan 16, 2016

Down to 7.1M by stripping tests from vendored modules.

Trims about 1MB off the size of strong-arc-*.tgz, bringing it back
down to just below 10MB.

Strip unused jQueryUI themes cuts 4MB from unpacked size.

Strip unprocessed source for jQuery and moment, which are only used for
rebuilding the distributed versions of those modules.

Strip tests from vendored modules, including sub-tests for Angular
directives.
@rmg rmg force-pushed the honey-i-shrunk-the-ark branch from af0a5ec to 514914c Compare January 16, 2016 21:36
@rmg
Copy link
Member Author

rmg commented Jan 16, 2016

Down to 6.8M by more accurately stripping the vendored tests.

Experimenting with some overly broad exclusions, I'm fairly confident that @jtary and @anthonyettinger could take this as a starting point and get the final tarball down to 6M or less by sorting out the use of minified vs. non-minified vendored scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants