Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 861 Bytes

README.md

File metadata and controls

46 lines (34 loc) · 861 Bytes

Start up

git clone

Configurations about each package

Generate repo.json, which is a file with all necessary meta information for one or multiple repos.

{
  "projects": [
    {
      "folder": "airtap",
      "repo": "airtap/airtap",
      "gitURL": "https://github.com/airtap/airtap.git",
      "unitTest": "test"
    }
  ]
}

Detect Unused dependencies for the repo

sh detect_bloated_strace.sh

Automatically remove dependencies.

sh remove_bloated_dependencies.sh

Generate debloated metadata files.

python debloat_pck_json.py package_name
python debloat_lock_file.py package_name

We can observe that new versions of package.json and package-lock.json is generated, without the bloated dependencies.

Node version in environment: v16.17.0
npm version in environment: v9.3.1