big repository size
Question
Currently the repository is 40 MB big.
$ java -jar bfg-1.13.0.jar --strip-blobs-bigger-than 1M grapesjs.git
Using repo : C:\Users\Daniel\GITHUB\grapesjs.git
Scanning packfile for large blobs: 25491
Scanning packfile for large blobs completed in 201 ms.
Found 62 blob ids for large blobs - biggest=6671189 smallest=1118592
Total size (unpacked)=114128523
Found 404 objects to protect
Found 22 tag-pointing refs : refs/tags/v0.10.2, refs/tags/v0.10.4, refs/tags/v0.10.6, ...
Found 73 commit-pointing refs : HEAD, refs/heads/dev, refs/heads/docs, ...
Protected commits
-----------------
These are your protected commits, and so their contents will NOT be altered:
* commit 14b5b1f4 (protected by 'HEAD') - contains 2 dirty files :
- dist/grapes.js (1,7 MB)
- dist/grapes.min.js.map (2,3 MB)
WARNING: The dirty content above may be removed from other commits, but as
the *protected* commits still use it, it will STILL exist in your repository.
Details of protected dirty content have been recorded here :
C:\Users\Daniel\GITHUB\grapesjs.git.bfg-report\2018-09-22\20-01-00\protected-dirt\
If you *really* want this content gone, make a manual commit that removes it,
and then run the BFG on a fresh copy of your repo.
Cleaning
--------
Found 2181 commits
Cleaning commits: 100% (2181/2181)
Cleaning commits completed in 13.506 ms.
Updating 29 Refs
----------------
Ref Before After
---------------------------------------------------
refs/heads/dev | 14b5b1f4 | 197f5e50
refs/heads/docs | 7bd80ad0 | 8246f145
refs/heads/dynamic-layer-root | 3d01b278 | 511f40e5
refs/heads/gh-pages | 5fa9c109 | 83b5a7bb
refs/heads/master | feda0f63 | 200191ae
refs/heads/multiple-select | a7408fb1 | b104f166
refs/heads/revert-1010-master | f823b5e9 | ce7285dd
refs/heads/touch-support-plg | 87652d4f | 2d64607d
refs/tags/v0.12.45 | 66c19dae | dca3a158
refs/tags/v0.12.50 | 0a760379 | a242a79e
refs/tags/v0.12.52 | 0153fb31 | 5c1811b4
refs/tags/v0.12.55 | d6ffecf2 | 761fea5a
refs/tags/v0.12.58 | 78c2976e | a3ec4163
refs/tags/v0.12.60 | f7367f55 | b86ac8cc
refs/tags/v0.13.5 | f74791da | f4c70232
...
Updating references: 100% (29/29)
...Ref update completed in 278 ms.
Commit Tree-Dirt History
------------------------
Earliest Latest
| |
..D...D.DDDDDDDDDDDDDDDDDDDDD.DDDDDD.DDDDDDDDDDDDDDDDDDDDDDD
D = dirty commits (file tree fixed)
m = modified commits (commit message or parents changed)
. = clean commits (no changes to file tree)
Before After
-------------------------------------------
First modified commit | b3c6d554 | 038a5758
Last dirty commit | 5fa9c109 | 83b5a7bb
Deleted files
-------------
Filename Git id
----------------------------------------------------------------
grapes.js | 661c6623 (1,4 MB), 2cb6064d (1,5 MB), ...
grapes.min.js.map | ee2235dd (2,3 MB), 28ee939d (2,3 MB), ...
grapesjs-mjml.min.js | f0893fdd (3,9 MB), cea7fbe0 (3,9 MB), ...
style-3d-text.gif | e56e20cf (1,2 MB)
tabs.gif | f4ce30e2 (2,1 MB)
video1.mp4 | a0ddfbad (6,4 MB)
video1.webm | 401c1ea9 (1,6 MB)
video2.mp4 | 3bdcd077 (2,2 MB)
video2.webm | bb8f1163 (1,4 MB)
In total, 1907 object ids were changed. Full details are logged here:
C:\Users\Daniel\GITHUB\grapesjs.git.bfg-report\2018-09-22\20-01-00
BFG run is complete! When ready, run: git reflog expire --expire=now --all && git gc --prune=now --aggressive
It looks like built / dist files and dev files are tracked and not ignored.
List of deleted files:
661c662360631d4ad205b8f36a7f197db8f5a473 1504675 grapes.js
44081c09b006ba5ecf6dca66738609d97f3a1418 1521025 grapes.js
f4e794e2cc52666333280f80f3cefd8005e2da1d 1483648 grapes.js
afe644c2b2d6c49fe5d7527eed5e88b50cb47a28 1483630 grapes.js
869e183e1c2535b25e211c75aeac746f0d8f43c8 1477004 grapes.js
f06db288bb36e9e850d13206997ddddf95f8e756 1642344 grapes.js
2cb6064dbb7a01f2a85981b953686492275fbb99 1619010 grapes.js
9dab0a0ff8790e8f69792b6dfc98dcbe9be488cc 1521020 grapes.js
42a0b4ba2c5c04216809ce8392dfb289a744e6e2 1490907 grapes.js
db5e91c2d2ebdcb7a5efa4b27429a82ea6c95808 1750720 grapes.js
e7db5cd458ba2a800652b71a4ba956a7d729607d 1499781 grapes.js
acf53409af883f6a05ab22d2096e68e9dc6da7a4 1818026 grapes.js
5619ff8fdab5f928bfd96f81693402c661e6e959 1647264 grapes.js
f512bcf548bfd2501dfe5ab1d1a011542d408197 1530906 grapes.js
8cb6af7ba784bbca8618891703b877ad3e246be3 1499925 grapes.js
6fc01564eb092d24d4ee05991efa1c554269e0e5 1737186 grapes.js
47ccf41c9930653465ead35ad3fe7ceb438a9d96 1619856 grapes.js
2d78524c8bc60d88dee276e947c322b62f6facd2 1490857 grapes.js
f2a167c9b8257ff3d0964aa65fca6037a94d3661 1523608 grapes.js
a3541d33eb1c076a9476b1606e099b199a1c9cc1 1526143 grapes.js
5383de3dee2679e02e248a3120834210ffba5ff2 1750362 grapes.js
656ca2d950369878e3dc84b803204ac2004fecd7 1507398 grapes.js
90ad84ad340bd8bf1cca2196a50722d453c912b4 1474908 grapes.js
c7a20c683a85bc7195b12f37c7a4a6c6c9e93e5a 1750705 grapes.js
141dcfb2b7b7f13f63df844ccecaaebe8df2e0a1 1483630 grapes.js
6ee6b0f52b8e61bccca0d157cd9e5504ce2c873e 1736995 grapes.js
f5ec3952633a8f045f0e62f20b81eb75f0603fa6 1534197 grapes.js
244dbc3a7ff79430b7933fba4d7ad5f4b2754e07 1741225 grapes.js
8a1694644b1992263aafb36e2d47ff375a4c65b7 1498920 grapes.js
0e78518d3445059437e7e10f946a7bf1d14f6a4e 1474908 grapes.js
24ba7cbf79c782161965a66c369aa142856868a9 1494404 grapes.js
243d4d62e9cc41585991e0ad1990e42cbb46236b 1488741 grapes.js
53ad10e3ba436c6632ebd5d83352c1217570a0cf 1493761 grapes.js
068f00d13a590e7b9fef3708d2c9be69d313e2de 1526105 grapes.js
0b303ebb5eebae1d0fa0fe0678a37fbf7077feca 1494445 grapes.js
087249b9f84b941eff533a3d9842f6f746dfdc50 1514225 grapes.js
af6de41bdce2e5d5d26cb69ea6b0d7f943b2927f 1532351 grapes.js
e3d8e80f88d231ee781efaaa4298daad7a967796 1493493 grapes.js
b618c575d94d5ffcf0650d07929236f911d394d3 1523541 grapes.js
b1b7fbd3df2eee926d81e7bef0738609fd957583 1480062 grapes.js
f4c8cf645168aaef2a5d7d4e36f9555ceec2d8ef 1641936 grapes.js
05cd9502e252fde1650d19d542de5dc861d9f067 1523600 grapes.js
ee13bd33c1516df6fc11c778f25e364d72214b77 1762820 grapes.js
c78bdd18ed924eb2a8320b2f87c2f4aa4cfb1c44 2447057 grapes.min.js.map
8314f38c5c1329bd642ad98e40787dff5f468ba7 2461778 grapes.min.js.map
ee2235dd46ec376d5281dd489d32a87a94c5af72 2438012 grapes.min.js.map
ea73ecb3141707d7046fcc88adb96d533836189d 2447573 grapes.min.js.map
af1b0374c374663385a9c88e58c9b9aa104b8633 2433323 grapes.min.js.map
28ee939dcbb356e6595c27ef4516f2fe8c9c811d 2447578 grapes.min.js.map
22601ecefafee7643420897546b42b9d101631bf 2447577 grapes.min.js.map
3f8933dfaaf6b4a3aa0d38efde188f07ef1e572a 2433303 grapes.min.js.map
532725468759469cb58c69a7cef212e14d3179f8 1314893 grapesjs-mjml.min.js
0be93c2d05f89ac6f6bc7e31cd1fecdc2c85656e 1118592 grapesjs-mjml.min.js
f0893fddf9b94cbb57b82239e7826e259aaf3f40 4083436 grapesjs-mjml.min.js
ca7776e01dc03a25a455efd7f31dc757edb2c4f3 3967784 grapesjs-mjml.min.js
cea7fbe094f617963555d7589e256a15ff9fece0 4084542 grapesjs-mjml.min.js
e56e20cf432ed10bee287cad866193e32546aaf4 1289903 style-3d-text.gif
f4ce30e27625ff5ceb613463844360f54254ece8 2199093 tabs.gif
a0ddfbadf1c635bf4970248d0ca731153bbcda50 6671189 video1.mp4
401c1ea91acb9895d4e3ff0c554bf3b82f016e7b 1698711 video1.webm
3bdcd0778824238f4aab96c10390c6614fab9cd6 2289038 video2.mp4
bb8f1163a73b3d8cbe6460ac9abe634adf4586c3 1503412 video2.webm
Answers (3)
Hi Daniel, to be honest, I never looked at the size of the repo so thanks for the report.
I can run git gc --aggressive --prune=now but it's not that effective (-15% in size). Unfortunately, skipping dist files is not an option because this is what you actually use when you call
import grapesjs from 'grapesjs'
I close this because I don't think there is any valid option to solve the issue (if not to actually removing stuff from the git history...), but any suggestion is welcome.
because this is what you actually use when you call
import grapesjs from 'grapesjs'
Which should be generally just published with npm publish and be in .gitignore in the ideal case ;-)
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1803
[Feature request] Fixed size canvas
We're using GrapesJS at work for building a kiosk-system into our CMS. Currently using the webpage template. We are displaying the content...
Issue #433
Unminified grapjes.js file?
I downloaded the git repo but was only able to find grapes.min.js. I really want to dig into the code some more and get a better understand...
Issue #616
Expose spectrum color picker options
Hi @artf, I'm wanting to customize some options for the spectrum color picker (specifically the palette). I've searched through the code an...
Issue #768
IE browser issue
Hi @artf , Created this issue due to https://github.com/artf/grapesjs/issues/214 has been closed ... I cloned the latest repo and run it on...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.