git-truck 0.0.0-1f51d21 → 0.0.0-22d1903
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -86
- package/build/client/assets/GitTruckInfo-un_3Kok4.js +1 -0
- package/build/client/assets/LoadingIndicator-SOpPzvbS.js +1 -0
- package/build/client/assets/RevisionSelect-SrpO6JPf.js +1 -0
- package/build/client/assets/Tooltip-D_S4TjsA.js +6 -0
- package/build/client/assets/_index-CUlJmeRb.js +1 -0
- package/build/client/assets/_repo._-1fXsj0hR.js +18 -0
- package/build/client/assets/_repository-CZYQSN1t.js +0 -0
- package/build/client/assets/authordist-BooTyDMX.js +0 -0
- package/build/client/assets/clear-cache-Ckh4wcip.js +1 -0
- package/build/client/assets/clear-cache-D0olKoRl.js +1 -0
- package/build/client/assets/commitcount-B_3CeIvr.js +0 -0
- package/build/client/assets/commits-DNZ_hn-X.js +0 -0
- package/build/client/assets/entry.client-D1dRnGqd.js +9 -0
- package/build/client/assets/jsx-runtime-DFd4lFBE.js +26 -0
- package/build/client/assets/manifest-4723abac.js +1 -0
- package/build/client/assets/progress-DMGX1aEW.js +0 -0
- package/build/client/assets/root-DKtEsrVf.js +1 -0
- package/build/client/assets/root-igHuhpOR.css +1 -0
- package/build/client/assets/ui-C5C1Jexe.js +1 -0
- package/build/client/favicon.ico +0 -0
- package/build/server/assets/server-build-DEjTAloe.js +12749 -0
- package/build/server/assets/util.server-DIX86N1-.js +1822 -0
- package/build/server/index.js +193 -0
- package/cli.js +35964 -1091
- package/package.json +126 -94
- package/build/index.js +0 -1203
- package/build/metafile.js.json +0 -1
- package/build/metafile.server.json +0 -1
- package/build/version.txt +0 -1
- package/public/build/_assets/commit_icon-JEPGHU5X.png +0 -0
- package/public/build/_assets/index-J6PD77UO.css +0 -1
- package/public/build/_assets/tailwind-MNPH7PLU.css +0 -1
- package/public/build/_assets/truck-JLDVJULS.png +0 -0
- package/public/build/_assets/vars-4NGWF3MU.css +0 -1
- package/public/build/_shared/chunk-3UNTI63Y.js +0 -1
- package/public/build/_shared/chunk-C4FAJW7L.js +0 -32
- package/public/build/_shared/chunk-DPCIHQKL.js +0 -264
- package/public/build/_shared/chunk-PKXMFIRJ.js +0 -1
- package/public/build/_shared/chunk-Q3IECNXJ.js +0 -1
- package/public/build/entry.client-LRRCQTX2.js +0 -1
- package/public/build/manifest-D9405B7D.js +0 -1
- package/public/build/root-Z62LLOJM.js +0 -1
- package/public/build/routes/$repo.$-O2WULVCZ.js +0 -35
- package/public/build/routes/_index-KOFOJN2F.js +0 -1
- package/public/build/routes/commits-GGDWDC7W.js +0 -1
- package/public/build/routes/progress-SNLO56GK.js +0 -1
- /package/{public/build/_assets/truck-7F5JWBYT.gif → build/client/assets/truck-BgAoc4Gr.gif} +0 -0
package/README.md
CHANGED
|
@@ -1,104 +1,44 @@
|
|
|
1
1
|
# Git Truck 🚛 · [](https://github.com/git-truck/git-truck/blob/main/LICENSE) [](https://www.npmjs.com/git-truck)
|
|
2
2
|
|
|
3
|
-
Git
|
|
3
|
+
Git Truck is a tool that provides you with a truckload of visualizations of your git repository.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|-|-|
|
|
7
|
-
| Where the files in your codebase that only have a single contributor are (i.e., truck-factor = 1) | <img width="1912" alt="image" src="https://github.com/git-truck/git-truck/assets/1959615/1cc20716-0927-4aba-8d7d-115626bc445f"> |
|
|
8
|
-
| How the various developers contribute to your codebase | <img width="1913" alt="image" src="https://github.com/git-truck/git-truck/assets/1959615/780852f3-28de-44d2-ab79-e4ef420c3736"> |
|
|
9
|
-
| Which parts of the system that are most often changed | <img width="1912" alt="image" src="https://github.com/git-truck/git-truck/assets/1959615/8ca5f0b9-798f-40cd-b64e-de2fee00a5c3"> |
|
|
5
|
+
With Git Truck you can:
|
|
10
6
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
🏝️ Works offline
|
|
16
|
-
|
|
17
|
-
🤷 Git provider agnostic - works with any git repository
|
|
7
|
+
- See who worked on different parts of the project
|
|
8
|
+
- Get an overview of the file structure
|
|
9
|
+
- See where there is the most activity in your project
|
|
10
|
+
- See how your project has looked at different points in time
|
|
18
11
|
|
|
19
|
-
|
|
12
|
+
| | |
|
|
13
|
+
| ----------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
|
14
|
+
| <img src="./teaser-images/readme1.png" alt="Where has the most work been done recently?"> | <img src="./teaser-images/readme2.png" alt="Who worked on different subsystems in the past?"> |
|
|
20
15
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
> [!IMPORTANT]
|
|
24
|
-
> To use Git Truck, you will need to have the following programs installed:
|
|
25
|
-
> - [Node.js](https://nodejs.org/en/) 18.0.0 or newer and npm 10.0 or newer
|
|
26
|
-
> - [git](https://git-scm.com/downloads) 2.29 or newer
|
|
27
|
-
>
|
|
28
|
-
> Check your installed versions using `node --version`, `npm --version` and `git --version`.
|
|
29
|
-
|
|
30
|
-
> [!TIP]
|
|
31
|
-
> The latests versions of Node and git can be installed from the links above.
|
|
32
|
-
|
|
33
|
-
> [!Note]
|
|
34
|
-
> `npm` is automatically installed along with `node`.
|
|
16
|
+
You can read more about the features in the [feature overview](https://git-truck.github.io/git-truck/GitTruckTeaser), [in papers about Git Truck](https://github.com/git-truck/papers/blob/master/README.md), or just try it and start exploring your projects!
|
|
35
17
|
|
|
36
18
|
## [Get started](#get-started)
|
|
37
19
|
|
|
38
|
-
1.
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
npx -y git-truck
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
2. The application will now open in your default browser.
|
|
45
|
-
|
|
46
|
-

|
|
20
|
+
1. In your terminal, navigate to a git repository or a folder containing several repositories
|
|
47
21
|
|
|
48
|
-
|
|
22
|
+
2. Run the command `npm install -g git-truck@latest` to install or update Git Truck.
|
|
49
23
|
|
|
50
|
-
|
|
24
|
+
3. Now you can run Git Truck using the command `git truck`
|
|
51
25
|
|
|
52
|
-
|
|
26
|
+
4. The application will now open in your default browser. Happy trucking!
|
|
53
27
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
### [Arguments](#arguments)
|
|
63
|
-
|
|
64
|
-
| arg | description | default value |
|
|
65
|
-
| :------------------: | :-------------------------------------------------------------------: | :----------------: |
|
|
66
|
-
| `--path` | path to a folder or a git repository | current directory |
|
|
67
|
-
| `--log` | output log level. See [here](./src/analyzer/log.server.ts) for values | - |
|
|
68
|
-
| `--port` | port to use for the program | 3000 |
|
|
69
|
-
| `--invalidate-cache` | bypass analyzer cache manually | - |
|
|
70
|
-
| `--headless` | run the program without opening the browser | - |
|
|
71
|
-
|
|
72
|
-
> [!CAUTION]
|
|
73
|
-
> Using `--invalidate-cache` will cause the analyzer to run every time the client talks to the server. This can be very slow if working with large repositories.
|
|
74
|
-
|
|
75
|
-
### [Configuration](#configuration)
|
|
76
|
-
|
|
77
|
-
You can add a `truckconfig.json` file to the root of your project, where you can define the arguments you want.
|
|
78
|
-
Additionally you can define which git-aliases should be considered as the same person using `unionedAuthors`. If provided, the first name in the array is used as the name of the person.
|
|
79
|
-
You can also define files to ignore.
|
|
80
|
-
|
|
81
|
-
**Example:**
|
|
28
|
+
> [!NOTE]
|
|
29
|
+
> To use Git Truck, you will need to have the following programs installed:
|
|
30
|
+
>
|
|
31
|
+
> - [Node.js](https://nodejs.org/en/) 22.0.0 or newer and npm 10.0 or newer
|
|
32
|
+
> - [git](https://git-scm.com/downloads) 2.29 or newer
|
|
33
|
+
>
|
|
34
|
+
> Check your installed versions using `node --version`, `npm --version` and `git --version`.
|
|
82
35
|
|
|
83
|
-
|
|
84
|
-
{
|
|
85
|
-
"log": "debug",
|
|
86
|
-
"branch": "main",
|
|
87
|
-
"unionedAuthors": [
|
|
88
|
-
["Bob", "Bobby Bob"],
|
|
89
|
-
["Alice", "aliiii", "alice alice"]
|
|
90
|
-
],
|
|
91
|
-
"hiddenFiles": ["package-lock.json", "*.bin", "*.svg"],
|
|
92
|
-
"invalidateCache": true
|
|
93
|
-
}
|
|
94
|
-
```
|
|
36
|
+
## [What makes Git Truck different?](#what-makes-git-truck-different)
|
|
95
37
|
|
|
96
|
-
|
|
38
|
+
🔒 Private by design
|
|
97
39
|
|
|
98
|
-
|
|
99
|
-
> If the repository you intend to analyze is very large (300k+ commits), we recommend to increase the memory available to nodejs by setting the environment variable `NODE_OPTIONS` to `--max-old-space-size=4096` before starting Git Truck, otherwise analyzation might crash.
|
|
100
|
-
> If your repository has more than 1 million commits, it is unlikely that Git Truck can successfully analyze it, even with higher memory limit.
|
|
40
|
+
🏝️ Works offline
|
|
101
41
|
|
|
102
|
-
|
|
42
|
+
🤷 Git provider agnostic - works with any git repository
|
|
103
43
|
|
|
104
|
-
|
|
44
|
+
😊 No tracking, no ads, no cloud, no servers, no subscription
|