git-truck 0.0.0-aebd64d → 0.0.0-afc155f

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.
Files changed (53) hide show
  1. package/README.md +27 -72
  2. package/build/client/assets/ErrorPage-C9wxOLZ3.js +1 -0
  3. package/build/client/assets/FullscreenButton-VKTZLH_E.js +1 -0
  4. package/build/client/assets/RepoTabs-CrEuVPGR.js +1 -0
  5. package/build/client/assets/_-BMGoK87-.js +1 -0
  6. package/build/client/assets/_._well-known._-DIwl00oI.js +0 -0
  7. package/build/client/assets/_index-BnEQn2aI.js +0 -0
  8. package/build/client/assets/_path-bRAhzWvL.js +0 -0
  9. package/build/client/assets/browse-Cw49S7Tv.js +1 -0
  10. package/build/client/assets/clear-cache-Cs_lJ97d.js +1 -0
  11. package/build/client/assets/clear-cache-v_vLpJth.js +1 -0
  12. package/build/client/assets/commitcount-eFguKtSp.js +0 -0
  13. package/build/client/assets/commits-DPfZp-l3.js +0 -0
  14. package/build/client/assets/entry.client-CyNp4org.js +9 -0
  15. package/build/client/assets/jsx-runtime-DwrGJl10.js +26 -0
  16. package/build/client/assets/manifest-b6c214be.js +1 -0
  17. package/build/client/assets/root-BXBlfKlh.css +1 -0
  18. package/build/client/assets/root-Bmc0ncn1.js +3 -0
  19. package/build/client/assets/ui-CGZF-WOU.js +1 -0
  20. package/build/client/assets/util-Dk4mpAYe.js +10 -0
  21. package/build/client/assets/view-PQBgMVXP.js +1 -0
  22. package/build/client/assets/view._index-BbPfX8u6.js +1 -0
  23. package/build/client/assets/view.commits-CUXFS8Zk.js +1 -0
  24. package/build/client/assets/view.details-CsewW5Y8.js +1 -0
  25. package/build/client/assets/view.merge-authors-Di799PLX.js +1 -0
  26. package/build/client/assets/view.progress-B7Os3EHt.js +0 -0
  27. package/build/client/favicon.ico +0 -0
  28. package/build/server/assets/server-build-D-3yxGlB.js +15599 -0
  29. package/build/server/index.js +5 -0
  30. package/cli.mjs +32388 -0
  31. package/package.json +133 -80
  32. package/build/_assets/App-CCO27G3C.css +0 -3
  33. package/build/_assets/Chart-OOZGWRB3.css +0 -26
  34. package/build/_assets/index-ISZFG75V.css +0 -52
  35. package/build/_assets/vars-SMWRLQRH.css +0 -25
  36. package/build/index.js +0 -133588
  37. package/cli.js +0 -217669
  38. package/public/build/_assets/App-CCO27G3C.css +0 -3
  39. package/public/build/_assets/Chart-OOZGWRB3.css +0 -26
  40. package/public/build/_assets/index-ISZFG75V.css +0 -52
  41. package/public/build/_assets/truck-7F5JWBYT.gif +0 -0
  42. package/public/build/_assets/vars-SMWRLQRH.css +0 -25
  43. package/public/build/_shared/chunk-2BPXJFRU.js +0 -67
  44. package/public/build/_shared/chunk-2EHCKJST.js +0 -1
  45. package/public/build/_shared/chunk-M2FHFTTV.js +0 -234
  46. package/public/build/_shared/chunk-OSISAMON.js +0 -1
  47. package/public/build/_shared/chunk-XMAWJ27N.js +0 -26
  48. package/public/build/entry.client-YPWZXPQ4.js +0 -1
  49. package/public/build/manifest-B77184FF.js +0 -1
  50. package/public/build/root-UZOE4KON.js +0 -1
  51. package/public/build/routes/$repo.$-Y75SJYSQ.js +0 -350
  52. package/public/build/routes/index-YPP2UMU6.js +0 -61
  53. /package/build/{_assets/truck-7F5JWBYT.gif → client/assets/truck-BgAoc4Gr.gif} +0 -0
package/README.md CHANGED
@@ -1,89 +1,44 @@
1
- # Git Truck 🚛
1
+ # Git Truck 🚛 · [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/git-truck/git-truck/blob/main/LICENSE) [![Git Truck on NPM](https://img.shields.io/npm/v/git-truck)](https://www.npmjs.com/git-truck)
2
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/):
3
+ Git Truck is a tool that provides you with a truckload of visualizations of your git repository.
4
4
 
5
+ With Git Truck you can:
5
6
 
6
- ### 1. The files in your system where you have a single contributor (i.e., truck-factor = 1)
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
7
11
 
8
- <img width="1912" alt="image" src="https://user-images.githubusercontent.com/464519/167393939-8d683732-4583-44fe-99a3-36c818761bcb.png">
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?"> |
9
15
 
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`.
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!
36
17
 
37
18
  ## [Get started](#get-started)
38
19
 
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)
20
+ 1. In your terminal, navigate to a git repository or a folder containing several repositories
52
21
 
53
- Run `npx git-truck` in the root of a git repository, that you want to visualize:
22
+ 2. Run the command `npm install -g git-truck@latest` to install or update Git Truck.
54
23
 
55
- ```sh
56
- npx git-truck [args]
57
- ```
24
+ 3. Now you can run Git Truck using the command `git truck`
58
25
 
59
- ### [Arguments](#arguments)
26
+ 4. The application will now open in your default browser. Happy trucking!
60
27
 
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 | - |
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`.
67
35
 
68
- **Note:** Using `--invalidate-cache` will cause the analyzer to run every time the client talks to the server.
36
+ ## [What makes Git Truck different?](#what-makes-git-truck-different)
69
37
 
70
- ### [Configuration](#configuration)
38
+ 🔒 Private by design
71
39
 
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.
40
+ 🏝️ Works offline
75
41
 
76
- **Example:**
42
+ 🤷 Git provider agnostic - works with any git repository
77
43
 
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
- ```
44
+ 😊 No tracking, no ads, no cloud, no servers, no subscription
@@ -0,0 +1 @@
1
+ import{G as e,t}from"./jsx-runtime-DwrGJl10.js";import{P as n,i as r}from"./util-Dk4mpAYe.js";var i=e(t());function a({className:e,message:t,children:a}){return(0,i.jsxs)(`div`,{className:r(`app-container`,e),children:[(0,i.jsx)(`div`,{}),(0,i.jsx)(`div`,{className:`grid h-full w-full place-items-center px-4 py-10`,children:(0,i.jsxs)(`div`,{className:`flex max-w-2xl flex-col items-center gap-3 text-center`,children:[(0,i.jsx)(`img`,{src:n,alt:`Git Truck`,className:`w-full max-w-sm min-w-0`}),(0,i.jsx)(`div`,{className:`text-4xl leading-tight font-extrabold`,children:t}),a]})})]})}export{a as t};
@@ -0,0 +1 @@
1
+ import{G as e,t}from"./jsx-runtime-DwrGJl10.js";import"./util-Dk4mpAYe.js";t();
@@ -0,0 +1 @@
1
+ import{G as e,M as t,N as n,a as r,j as i,t as a}from"./jsx-runtime-DwrGJl10.js";import{at as o,g as s,lt as c}from"./util-Dk4mpAYe.js";var l=e(a());function u(){let e=n(),a=i(),u=t(r(`/view/commits`));return(0,l.jsx)(s,{large:!0,group:{"/details":`Details`,"/commits":`Commits`},iconMap:{"/details":o,"/commits":c},defaultValue:u?`/commits`:`/details`,onChange:t=>{e(r(`/view${t}`)+a.search,{state:a.state})}})}export{u as t};
@@ -0,0 +1 @@
1
+ import{B as e,G as t,l as n,t as r}from"./jsx-runtime-DwrGJl10.js";import"./util-Dk4mpAYe.js";import{t as i}from"./ErrorPage-C9wxOLZ3.js";var a=t(r(),1),o=e(function(){return(0,a.jsx)(i,{message:`404 - Page Not Found`,children:(0,a.jsx)(n,{className:`btn btn--primary mt-4`,to:`/`,children:`Go back home`})})});export{o as default};
File without changes
File without changes
@@ -0,0 +1 @@
1
+ import"./jsx-runtime-DwrGJl10.js";import{M as e,j as t}from"./util-Dk4mpAYe.js";export{t as default,e as meta};
@@ -0,0 +1 @@
1
+ import"./jsx-runtime-DwrGJl10.js";import"./util-Dk4mpAYe.js";import{n as e}from"./clear-cache-v_vLpJth.js";export{e as default};
@@ -0,0 +1 @@
1
+ import{A as e,B as t,G as n,O as r,j as i,l as a,t as o}from"./jsx-runtime-DwrGJl10.js";import{N as s,i as c,nt as l,ut as u}from"./util-Dk4mpAYe.js";var d=n(o(),1);function f({redirectPath:e,className:t=``}={}){let n=i(),a=r({key:`clear-cache-form`}),o=`/clear-cache?${new URLSearchParams({redirect:e??n.pathname+n.search}).toString()}`,s=a.state!==`idle`;return(0,d.jsx)(a.Form,{action:o,method:`post`,children:(0,d.jsxs)(`button`,{type:`submit`,disabled:s,className:c(`btn btn--danger`,t),title:`Click here if you are experiencing issues`,children:[(0,d.jsx)(u,{path:l,className:`hover-swap inline-block h-full`}),s?`Clearing...`:`Clear all data`]})},a.state)}var p=t(function(){let{versionInfo:t}=e();return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(`div`,{className:`app-container flex flex-col gap-2 p-2`,children:[(0,d.jsx)(`div`,{className:`card`,children:(0,d.jsx)(s,{installedVersion:t.installedVersion,latestVersion:t.latestVersion})}),(0,d.jsxs)(`div`,{className:`card`,children:[(0,d.jsx)(`h1`,{className:`text-2xl font-bold`,children:`Clear Git Truck cache`}),(0,d.jsx)(`p`,{children:`This will clear all analyzed results and reset the database cache. This is only necessary if you are experiencing issues.`}),(0,d.jsxs)(`div`,{className:`flex h-full place-items-center gap-2 rounded-lg border bg-amber-500/70 p-4 text-white`,children:[(0,d.jsx)(u,{path:l,className:`inline-block h-12`}),(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`span`,{className:`font-bold`,children:`Warning: `}),(0,d.jsx)(`span`,{children:`Merged authors and hidden files will be reset.`})]})]}),(0,d.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,d.jsx)(a,{to:`/`,className:`btn btn--text`,children:`Go back`}),(0,d.jsx)(f,{redirectPath:`/`})]})]})]})})});export{p as n,f as t};
File without changes
File without changes