git-truck 1.1.4 → 1.1.8
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 -21
- package/README.md +89 -89
- package/build/index.js +480 -468
- package/cli.js +4 -4
- package/package.json +125 -124
- package/public/build/_assets/{App-CCO27G3C.css → App-G6V2GHO3.css} +3 -3
- package/public/build/_assets/{Chart-OOZGWRB3.css → Chart-C7HOIFWY.css} +26 -26
- package/public/build/_assets/{index-ISZFG75V.css → index-K5E2NP2H.css} +52 -52
- package/public/build/_assets/{vars-SMWRLQRH.css → vars-TECAP2OK.css} +25 -25
- package/public/build/{manifest-E7B01341.js → manifest-96BD7AE6.js} +1 -1
- package/public/build/{root-RVNUJ3UD.js → root-RTLWXT2O.js} +1 -1
- package/public/build/routes/$repo.$-62JXSMTE.js +350 -0
- package/public/build/routes/{index-6TM7IHZN.js → index-BKSO2FY7.js} +0 -0
- package/public/build/routes/$repo.$-XW46RJFV.js +0 -350
package/LICENSE
CHANGED
|
@@ -1,21 +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.
|
|
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
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
# Git Truck 🚛
|
|
2
|
-
|
|
3
|
-
Git-Truck provides you with a truckload of visualizations for your git repository, and find out if your project has a good [truck factor](https://www.agileadvice.com/2005/05/15/agilemanagement/truck-factor/):
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
### 1. The files in your system where you have a single contributor (i.e., truck-factor = 1)
|
|
7
|
-
|
|
8
|
-
<img width="1912" alt="image" src="https://user-images.githubusercontent.com/464519/167393939-8d683732-4583-44fe-99a3-36c818761bcb.png">
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
### 2. How the various developers contribute to your codebase
|
|
12
|
-
|
|
13
|
-
<img width="1913" alt="image" src="https://user-images.githubusercontent.com/464519/167394548-ca66665a-a699-44d7-8a97-bc7309c72f8a.png">
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
### 3. The parts of the system that are most often changed
|
|
18
|
-
|
|
19
|
-
<img width="1912" alt="image" src="https://user-images.githubusercontent.com/464519/167395118-6a4f50f4-5f37-4e0d-bcc8-144797b83e65.png">
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
### 4. You can also merge multiple developer accounts
|
|
23
|
-
|
|
24
|
-
<img width="1907" alt="image" src="https://user-images.githubusercontent.com/464519/167394405-67bd5b5d-be50-444e-8a1f-68af083a6cba.png">
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
## [Prerequisites](#prerequisites)
|
|
28
|
-
|
|
29
|
-
To use Git Truck, you will need to have the following programs installed:
|
|
30
|
-
|
|
31
|
-
- [Node.js](https://nodejs.org/en/) 16.13 or newer
|
|
32
|
-
- npm 6.14 or newer
|
|
33
|
-
- [git](https://git-scm.com/downloads) 2.29 or newer
|
|
34
|
-
|
|
35
|
-
To check if these programs are installed, and what version you have, run `node --version`, `npm --version` and `git --version`. If any of these are not installed on your system, or are just very old, they can be installed from the links above. Note that `npm` is installed along with `node`.
|
|
36
|
-
|
|
37
|
-
## [Get started](#get-started)
|
|
38
|
-
|
|
39
|
-
1. Within a git repository, or a directory containing git repositories, run the command `npx git-truck@latest`.
|
|
40
|
-
2. Press `y` if it asks you to download the package.
|
|
41
|
-
3. The application will now open in your default browser.
|
|
42
|
-
|
|
43
|
-
**Git Truck is part of a research study, so please fill out our [short survey](https://forms.gle/9wCCAw6zae7wuwZQ6) after trying out the tool. Thanks!**
|
|
44
|
-
|
|
45
|
-
## [I got an error or I want to give feedback, what do i do?](#i-got-an-error-or-i-want-to-give-feedback-what-do-i-do)
|
|
46
|
-
|
|
47
|
-
Please open an issue [here](https://github.com/git-truck/git-truck/issues) where you describe your problem. Please include git version, node version, npm version, operating system, and an image of the problem would be great too!
|
|
48
|
-
|
|
49
|
-
If you have any suggestions about new features, or things that you think should be different, also feel free to open an issue.
|
|
50
|
-
|
|
51
|
-
## [Advanced use](#advanced-use)
|
|
52
|
-
|
|
53
|
-
Run `npx git-truck` in the root of a git repository, that you want to visualize:
|
|
54
|
-
|
|
55
|
-
```sh
|
|
56
|
-
npx git-truck [args]
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### [Arguments](#arguments)
|
|
60
|
-
|
|
61
|
-
| arg | description | default value |
|
|
62
|
-
| :------------------: | :-------------------------------------------------------------------: | :----------------: |
|
|
63
|
-
| `--path` | path to a folder or a git repository | current directory |
|
|
64
|
-
| `--log` | output log level. See [here](./src/analyzer/log.server.ts) for values | - |
|
|
65
|
-
| `--port` | port to use for the program | 3000 |
|
|
66
|
-
| `--invalidate-cache` | bypass analyzer cache manually | - |
|
|
67
|
-
|
|
68
|
-
**Note:** Using `--invalidate-cache` will cause the analyzer to run every time the client talks to the server.
|
|
69
|
-
|
|
70
|
-
### [Configuration](#configuration)
|
|
71
|
-
|
|
72
|
-
You can add a `truckconfig.json` file to the root of your project, where you can define the arguments you want.
|
|
73
|
-
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.
|
|
74
|
-
You can also define files to ignore.
|
|
75
|
-
|
|
76
|
-
**Example:**
|
|
77
|
-
|
|
78
|
-
```json
|
|
79
|
-
{
|
|
80
|
-
"log": "debug",
|
|
81
|
-
"branch": "main",
|
|
82
|
-
"unionedAuthors": [
|
|
83
|
-
["Bob", "Bobby Bob"],
|
|
84
|
-
["Alice", "aliiii", "alice alice"]
|
|
85
|
-
],
|
|
86
|
-
"hiddenFiles": ["package-lock.json", "*.bin", "*.svg"],
|
|
87
|
-
"invalidateCache": true
|
|
88
|
-
}
|
|
89
|
-
```
|
|
1
|
+
# Git Truck 🚛
|
|
2
|
+
|
|
3
|
+
Git-Truck provides you with a truckload of visualizations for your git repository, and find out if your project has a good [truck factor](https://www.agileadvice.com/2005/05/15/agilemanagement/truck-factor/):
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 1. The files in your system where you have a single contributor (i.e., truck-factor = 1)
|
|
7
|
+
|
|
8
|
+
<img width="1912" alt="image" src="https://user-images.githubusercontent.com/464519/167393939-8d683732-4583-44fe-99a3-36c818761bcb.png">
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### 2. How the various developers contribute to your codebase
|
|
12
|
+
|
|
13
|
+
<img width="1913" alt="image" src="https://user-images.githubusercontent.com/464519/167394548-ca66665a-a699-44d7-8a97-bc7309c72f8a.png">
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### 3. The parts of the system that are most often changed
|
|
18
|
+
|
|
19
|
+
<img width="1912" alt="image" src="https://user-images.githubusercontent.com/464519/167395118-6a4f50f4-5f37-4e0d-bcc8-144797b83e65.png">
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### 4. You can also merge multiple developer accounts
|
|
23
|
+
|
|
24
|
+
<img width="1907" alt="image" src="https://user-images.githubusercontent.com/464519/167394405-67bd5b5d-be50-444e-8a1f-68af083a6cba.png">
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## [Prerequisites](#prerequisites)
|
|
28
|
+
|
|
29
|
+
To use Git Truck, you will need to have the following programs installed:
|
|
30
|
+
|
|
31
|
+
- [Node.js](https://nodejs.org/en/) 16.13 or newer
|
|
32
|
+
- npm 6.14 or newer
|
|
33
|
+
- [git](https://git-scm.com/downloads) 2.29 or newer
|
|
34
|
+
|
|
35
|
+
To check if these programs are installed, and what version you have, run `node --version`, `npm --version` and `git --version`. If any of these are not installed on your system, or are just very old, they can be installed from the links above. Note that `npm` is installed along with `node`.
|
|
36
|
+
|
|
37
|
+
## [Get started](#get-started)
|
|
38
|
+
|
|
39
|
+
1. Within a git repository, or a directory containing git repositories, run the command `npx git-truck@latest`.
|
|
40
|
+
2. Press `y` if it asks you to download the package.
|
|
41
|
+
3. The application will now open in your default browser.
|
|
42
|
+
|
|
43
|
+
**Git Truck is part of a research study, so please fill out our [short survey](https://forms.gle/9wCCAw6zae7wuwZQ6) after trying out the tool. Thanks!**
|
|
44
|
+
|
|
45
|
+
## [I got an error or I want to give feedback, what do i do?](#i-got-an-error-or-i-want-to-give-feedback-what-do-i-do)
|
|
46
|
+
|
|
47
|
+
Please open an issue [here](https://github.com/git-truck/git-truck/issues) where you describe your problem. Please include git version, node version, npm version, operating system, and an image of the problem would be great too!
|
|
48
|
+
|
|
49
|
+
If you have any suggestions about new features, or things that you think should be different, also feel free to open an issue.
|
|
50
|
+
|
|
51
|
+
## [Advanced use](#advanced-use)
|
|
52
|
+
|
|
53
|
+
Run `npx git-truck` in the root of a git repository, that you want to visualize:
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
npx git-truck [args]
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### [Arguments](#arguments)
|
|
60
|
+
|
|
61
|
+
| arg | description | default value |
|
|
62
|
+
| :------------------: | :-------------------------------------------------------------------: | :----------------: |
|
|
63
|
+
| `--path` | path to a folder or a git repository | current directory |
|
|
64
|
+
| `--log` | output log level. See [here](./src/analyzer/log.server.ts) for values | - |
|
|
65
|
+
| `--port` | port to use for the program | 3000 |
|
|
66
|
+
| `--invalidate-cache` | bypass analyzer cache manually | - |
|
|
67
|
+
|
|
68
|
+
**Note:** Using `--invalidate-cache` will cause the analyzer to run every time the client talks to the server.
|
|
69
|
+
|
|
70
|
+
### [Configuration](#configuration)
|
|
71
|
+
|
|
72
|
+
You can add a `truckconfig.json` file to the root of your project, where you can define the arguments you want.
|
|
73
|
+
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.
|
|
74
|
+
You can also define files to ignore.
|
|
75
|
+
|
|
76
|
+
**Example:**
|
|
77
|
+
|
|
78
|
+
```json
|
|
79
|
+
{
|
|
80
|
+
"log": "debug",
|
|
81
|
+
"branch": "main",
|
|
82
|
+
"unionedAuthors": [
|
|
83
|
+
["Bob", "Bobby Bob"],
|
|
84
|
+
["Alice", "aliiii", "alice alice"]
|
|
85
|
+
],
|
|
86
|
+
"hiddenFiles": ["package-lock.json", "*.bin", "*.svg"],
|
|
87
|
+
"invalidateCache": true
|
|
88
|
+
}
|
|
89
|
+
```
|