Loose Dependency Manager (or ldm
in short) is a tool for managing code dependencies in a loosely-coupled way.
First, install loose-dependency-manager
:
pip install loose-dependency-manager
Then, create a ldm.yml
file in the root of your project:
schemes:
lodash:
uses: github
with:
url: https://github.com/lodash/lodash
ref: main
dependencies:
clamp: lodash:///src/clamp.ts -> src/utils/clamp.ts
reset.css: |
https://cdn.jsdelivr.net/npm/reset-css@5.0.2/reset.min.css
-> src/styles/reset.css
config:
parallel:
workers: 8
environment:
from: .env
Finally, run ldm install
to install the dependencies
ldm install
Note
You can also run ldm install [...dependencies]
to install specific dependencies.
ldm install clamp
If you need to debug the installation process, you can run ldm install --debug
to see the logs.
ldm install --debug
TODO: description
Any contribution is welcome! Check out CONTRIBUTING.md and CODE_OF_CONDUCT.md for more information on how to get started.
ldm
is licensed under a MIT License.