FluidFramework
FluidFramework copied to clipboard
depcheck continued
This PR introduces a dependency on depcheck npm package, which helps identify unused dependencies in the package.json file. It should help bring down the number of dependencies that we install during initial code setup, and there by reducing the overall setup time.
In the PR we add a new handler in npmPackages build-cli tools to run depcheck as an additional policy check. The handler reads the .depcheckrc.cjs config file in each package (if present) and passes the config to the depcheck api. The errors are reported in the repo-policy-check step during a PR build.
For now, many of the folders are marked as excluded in fluidBuild.config.cjs file, because the number of errors reported were too many. We will progressively reduce the exclude list as we resolve the errors reported with subsequent PRs.
⯅ @fluid-example/bundle-size-tests: +245 Bytes
| Metric Name | Baseline Size | Compare Size | Size Diff |
|---|---|---|---|
| aqueduct.js | 460.44 KB | 460.47 KB | ⯅ +35 Bytes |
| azureClient.js | 559.03 KB | 559.08 KB | ⯅ +49 Bytes |
| connectionState.js | 680 Bytes | 680 Bytes | ■ No change |
| containerRuntime.js | 261.68 KB | 261.69 KB | ⯅ +14 Bytes |
| fluidFramework.js | 403.49 KB | 403.5 KB | ⯅ +14 Bytes |
| loader.js | 134.17 KB | 134.19 KB | ⯅ +14 Bytes |
| map.js | 42.43 KB | 42.44 KB | ⯅ +7 Bytes |
| matrix.js | 145.87 KB | 145.88 KB | ⯅ +7 Bytes |
| odspClient.js | 526.18 KB | 526.23 KB | ⯅ +49 Bytes |
| odspDriver.js | 97.8 KB | 97.82 KB | ⯅ +21 Bytes |
| odspPrefetchSnapshot.js | 42.76 KB | 42.78 KB | ⯅ +14 Bytes |
| sharedString.js | 162.84 KB | 162.84 KB | ⯅ +7 Bytes |
| sharedTree.js | 393.95 KB | 393.96 KB | ⯅ +7 Bytes |
| Total Size | 3.3 MB | 3.3 MB | ⯅ +245 Bytes |
Baseline commit: 0702400e00054668612cf05ecac43139340cda77
Generated by :no_entry_sign: dangerJS against 216b0afaec336ece745949b3a8f6a543e0c82668
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!