Skip to content

Commit 2d99edf

Browse files
authored
Merge pull request #18 from nexB/small-doc-improvements
Improve documentation
2 parents 95709ff + 4ec88ad commit 2d99edf

1 file changed

Lines changed: 41 additions & 14 deletions

File tree

README.rst

Lines changed: 41 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
DepLock
33
===================
44

5-
**DepLock** (Dependency Locker) is a CLI tool to generate lockfiles, which contain resolved dependencies for the project.
6-
75
|license| |version| |build|
86

97
.. |license| image:: https://img.shields.io/badge/License-Apache--2.0-blue.svg?style=for-the-badge
@@ -13,6 +11,27 @@ DepLock
1311

1412
.. |build| image:: https://img.shields.io/github/actions/workflow/status/nexB/dependency-inspector/ci.yml?style=for-the-badge&logo=github
1513

14+
**DepLock** (Dependency Locker) is a command line tool to generate package lockfiles,
15+
and parsable package manifests to make it possible and easy to collect resolved dependencies
16+
and accurate metadata for a project. It uses the standard package management tool for
17+
each package type or ecosystem.
18+
19+
This tool is designed for use before a scan and is deployed as a single,
20+
standalone executable file. It should be running in a shell or command prompt
21+
configured to run the project build, with all required package management tools
22+
pre-installed and configured.
23+
24+
The main usage is to run as a front command before a ScanCode.io or ScanCode Toolkit scan
25+
but it is generic and can be used with any other tool.
26+
27+
Supported Ecosystems
28+
=====================
29+
30+
- **npm**: https://www.npmjs.com/
31+
- **pnpm**: https://pnpm.io/
32+
- **yarn**: https://yarnpkg.com/
33+
- **swift**: https://www.swift.org/documentation/package-manager/
34+
1635

1736
Installation
1837
============
@@ -32,10 +51,22 @@ To install DepLock, follow these steps:
3251
# [Optional] Rename and move the binary to your PATH
3352
mv deplock-<OS>-<ARCH> /usr/local/bin/deplock
3453
35-
Uses
36-
=====
54+
Alternatively you can build it from source as exaplained below.
55+
56+
57+
Requirements
58+
============
59+
60+
To use DepLock, you need to ensure that you have installed and configured
61+
the package manager(s) your project needs.
62+
63+
For instance, `npm` must be installed to generate `npm` lockfiles.
3764

38-
Here's how to get started and use the various commands:
65+
66+
Usage
67+
=======
68+
69+
Here is how to get started and use the various commands:
3970

4071
.. code-block:: bash
4172
@@ -45,13 +76,6 @@ Here's how to get started and use the various commands:
4576
# Display help for a specific command
4677
deplock [command] --help
4778
48-
Supported Ecosystems
49-
--------------------
50-
51-
- **npm**
52-
- **pnpm**
53-
- **yarn**
54-
5579
Example
5680
-------
5781

@@ -72,9 +96,12 @@ Generating lockfile for an npm project:
7296
Contribution
7397
=============
7498

75-
We welcome contributions from the community! If you find a bug or have an idea for a new feature, please open an issue on the GitHub repository. If you want to contribute code, you can fork the repository, make your changes, and submit a pull request.
99+
We welcome contributions from the community! If you find a bug or have an idea for a new feature,
100+
please open an issue on the GitHub repository. If you want to contribute code, you can fork the
101+
repository, make your changes, and submit a pull request.
76102

77-
- Please try to write a good commit message, see `good commit message wiki. <https://aboutcode.readthedocs.io/en/latest/contributing/writing_good_commit_messages.html>`_
103+
- Please try to write a good commit message, see `good commit message wiki.
104+
<https://aboutcode.readthedocs.io/en/latest/contributing/writing_good_commit_messages.html>`_
78105
- Add DCO Sign Off to your commits.
79106

80107
Development setup

0 commit comments

Comments
 (0)