git-truck 0.0.0-00e1486
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/LICENSE +21 -0
- package/README.md +98 -0
- package/build/index.js +1210 -0
- package/build/metafile.js.json +1 -0
- package/build/metafile.server.json +1 -0
- package/build/version.txt +1 -0
- package/cli.js +1098 -0
- package/package.json +151 -0
- package/public/build/_assets/animations-TUO2PXWS.css +1 -0
- package/public/build/_assets/commit_icon-JEPGHU5X.png +0 -0
- package/public/build/_assets/tailwind-RCPAWP3K.css +1 -0
- package/public/build/_assets/truck-7F5JWBYT.gif +0 -0
- package/public/build/_assets/truck-JLDVJULS.png +0 -0
- package/public/build/_assets/vars-COQCVZEU.css +1 -0
- package/public/build/_shared/buttons.esm-NERHWBM5.js +10 -0
- package/public/build/_shared/chunk-C4FAJW7L.js +32 -0
- package/public/build/_shared/chunk-DPCIHQKL.js +264 -0
- package/public/build/_shared/chunk-Q3IECNXJ.js +1 -0
- package/public/build/_shared/chunk-RNK4UN5B.js +1 -0
- package/public/build/_shared/chunk-XF47JJBR.js +1 -0
- package/public/build/entry.client-LRRCQTX2.js +1 -0
- package/public/build/manifest-F42E9C69.js +1 -0
- package/public/build/root-4WD3OUSP.js +1 -0
- package/public/build/routes/$repo.$-2WJPV3CR.js +35 -0
- package/public/build/routes/_index-P2VLJOYU.js +1 -0
- package/public/build/routes/commits-GGDWDC7W.js +1 -0
- package/public/build/routes/progress-SNLO56GK.js +1 -0
- package/public/favicon.ico +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 git-truck
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Git Truck 🚛 · [](https://github.com/git-truck/git-truck/blob/main/LICENSE) [](https://www.npmjs.com/git-truck)
|
|
2
|
+
|
|
3
|
+
Git-Truck is a tool that provides you with a truckload of visualizations for your git repository, and helps you find out if your project has a good [truck factor](https://en.wikipedia.org/wiki/Bus_factor).
|
|
4
|
+
|
|
5
|
+
| Git Truck can help you figure out: | |
|
|
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"> |
|
|
10
|
+
|
|
11
|
+
## [What makes Git Truck different?](#what-makes-git-truck-different)
|
|
12
|
+
|
|
13
|
+
🔒 Private by design
|
|
14
|
+
|
|
15
|
+
🏝️ Works offline
|
|
16
|
+
|
|
17
|
+
🤷 Git provider agnostic - works with any git repository
|
|
18
|
+
|
|
19
|
+
😊 No tracking, no ads, no data mining, no analytics, no cloud, no servers
|
|
20
|
+
|
|
21
|
+
## [Prerequisites](#prerequisites)
|
|
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`.
|
|
35
|
+
|
|
36
|
+
## [Get started](#get-started)
|
|
37
|
+
|
|
38
|
+
1. Within a git repository, or a directory containing git repositories, run the command
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npx -y git-truck
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
2. The application will now open in your default browser.
|
|
45
|
+
|
|
46
|
+

|
|
47
|
+
|
|
48
|
+
## [Feedback](#feedback)
|
|
49
|
+
|
|
50
|
+
Please open an issue [here](https://github.com/git-truck/git-truck/issues) where you describe your problem or feature request. For bug reports, please include git version, Node version, npm version, operating system, and an image of the problem would be great too!
|
|
51
|
+
|
|
52
|
+
If you have any suggestions about new features, or things that you think should be different, also feel free to open an issue.
|
|
53
|
+
|
|
54
|
+
## [Advanced use](#advanced-use)
|
|
55
|
+
|
|
56
|
+
Run `npx git-truck` in the root of a git repository, that you want to visualize:
|
|
57
|
+
|
|
58
|
+
```sh
|
|
59
|
+
npx git-truck [args]
|
|
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:**
|
|
82
|
+
|
|
83
|
+
```json
|
|
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
|
+
```
|
|
95
|
+
|
|
96
|
+
## Star History
|
|
97
|
+
|
|
98
|
+
[](https://star-history.com/#git-truck/git-truck&Date)
|