FluidFramework icon indicating copy to clipboard operation
FluidFramework copied to clipboard

Dependency checker

Open pragya91 opened this issue 1 year ago • 3 comments

Attempt to fix the depcheck tool, that can be used to report or fix the unused or misplaced dependencies in the repo.

pragya91 avatar Jun 27 '24 18:06 pragya91

I'll look more deeply later, but one high level question is: could this be a policy instead? fluid-build doesn't seem like the right place to put this. Instead, you could factor out the check code needed into build-cli alongside the other repo policies.

Also consider adding config options. That way we can configure and document things in one central place. Especially if there are hardcoded lists of expectations, for example.

tylerbutler avatar Jun 28 '24 23:06 tylerbutler

Worth a look if you haven't seen it: https://www.npmjs.com/package/depcheck

tylerbutler avatar Jun 28 '24 23:06 tylerbutler

@fluid-example/bundle-size-tests: +245 Bytes
Metric NameBaseline SizeCompare SizeSize Diff
aqueduct.js 454.56 KB 454.6 KB +35 Bytes
azureClient.js 552.16 KB 552.21 KB +49 Bytes
connectionState.js 680 Bytes 680 Bytes No change
containerRuntime.js 255.87 KB 255.88 KB +14 Bytes
fluidFramework.js 384.95 KB 384.97 KB +14 Bytes
loader.js 134.01 KB 134.03 KB +14 Bytes
map.js 42.17 KB 42.17 KB +7 Bytes
matrix.js 145.44 KB 145.45 KB +7 Bytes
odspClient.js 520.23 KB 520.28 KB +49 Bytes
odspDriver.js 97.21 KB 97.23 KB +21 Bytes
odspPrefetchSnapshot.js 42.21 KB 42.22 KB +14 Bytes
sharedString.js 162.52 KB 162.53 KB +7 Bytes
sharedTree.js 375.42 KB 375.42 KB +7 Bytes
Total Size 3.24 MB 3.24 MB +245 Bytes

Baseline commit: c420b91d188b5b9c6ed185afd17011db9f53f14d

Generated by :no_entry_sign: dangerJS against 9e455cb1a826466cf4b46da90fb1f228710516c3

msfluid-bot avatar Jun 28 '24 23:06 msfluid-bot

This PR has been automatically marked as stale because it has had no activity for 60 days. It will be closed if no further activity occurs within 8 days of this comment. Thank you for your contributions to Fluid Framework!