Skip to content

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

Open
rmg wants to merge 1 commit into
masterfrom
honey-i-shrunk-the-ark
Open

WIP: Strip tests, examples, and tgzs from distribution#1347
rmg wants to merge 1 commit into
masterfrom
honey-i-shrunk-the-ark

Conversation

@rmg

@rmg rmg commented Jun 11, 2015

Copy link
Copy Markdown
Member

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

listepo commented Dec 17, 2015

Copy link
Copy Markdown

+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

rmg commented Jan 16, 2016

Copy link
Copy Markdown
Member Author

@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

rmg commented Jan 16, 2016

Copy link
Copy Markdown
Member Author

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

@rmg

rmg commented Jan 16, 2016

Copy link
Copy Markdown
Member Author

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

rmg commented Jan 16, 2016

Copy link
Copy Markdown
Member Author

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