Qld-Health-Online-Team / design-system

11 stars 7 forks source link

QGDS-Vanilla bfg cleaned repo merge (for easy PR's) #159

Open duttonw opened 2 months ago

duttonw commented 2 months ago

In combination with https://github.com/qld-gov-au/qgds-vanilla/pull/20 which is a BFG cleaned version of https://github.com/Qld-Health-Online-Team/design-system

This reduces the repo (.git folder) size from 70mb to 4mb.

This is a manual merge git merge ${branch} --allow-unrelated-histories to re-join the tree's to ease in git merge's cherry picks.

Steps to reproduce (for the most part) below:

At commit 69333b8a1973d84ff9d438acb0ad19839bebb67d of https://github.com/Qld-Health-Online-Team/design-system

commit 44bed5addd790fec43963bcd578468f6c4cc76e2 (duttonw/qh-design-system-history, qh-design-system-history) Merge: 16d5d47f4 be853dc0d Author: William Dutton william.dutton@qld.gov.au Date: Wed Aug 21 09:09:10 2024 +1000

At commit 69333b8a1973d84ff9d438acb0ad19839bebb67d of https://github.com/Qld-Health-Online-Team/design-system
https://github.com/Qld-Health-Online-Team/design-system/commit/69333b8a1973d84ff9d438acb0ad19839bebb67d

Commands run were
```bash
git clone https://github.com/Qld-Health-Online-Team/design-system.git qh-design-system
cd qh-design-system
git checkout development
rm -rf dist src/externals
rm -rf `find . -name ".DS_Store"`
git commit -m"Remove binary artifacts"
cd ..
java -jar bfg-1.14.0.jar --delete-folders dist   qh-design-system
java -jar bfg-1.14.0.jar --delete-folders externals   qh-design-system
java -jar bfg-1.14.0.jar --delete-folders .DS_Store qh-design-system
cd qh-design-system
git reflog expire --expire=now --all && git gc --prune=now --aggressive
```

Merge remote-tracking branch 'clean/bfg-cleaned-up' into qh-design-system-history
duttonw commented 2 months ago

Hi @AmirNajariH This should help in pulling in the cicd items that have been primed on https://github.com/qld-gov-au/qgds-vanilla

I'm uncertain if you want to drop the dist folder once you have a process of making your own 'release' binary repo based variables var.TARGET_REPO using qld-gov-au/gha-publish-to-git@master in the compile workflow

You can see the cicd in this 'squashed' commit https://github.com/qld-gov-au/qgds-vanilla/commit/885a3d57ddb1168b105d743f16f6e2a34071638f It also includes the skeleton setup for storybook.