git-truck 0.8.4-1 → 0.8.6-experimental3

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 (86) hide show
  1. package/README.md +17 -13
  2. package/build/index.js +2420 -2080
  3. package/cli.js +3 -0
  4. package/package.json +8 -4
  5. package/{src/styles/App.css → public/build/_assets/App-CCO27G3C.css} +0 -0
  6. package/{src/styles/Chart.css → public/build/_assets/Chart-OOZGWRB3.css} +0 -0
  7. package/{src/styles/index.css → public/build/_assets/index-OING3CPO.css} +0 -0
  8. package/{src/styles/vars.css → public/build/_assets/vars-3S65VA3F.css} +0 -0
  9. package/public/build/_shared/chunk-3UBBWI7X.js +25 -0
  10. package/public/build/_shared/chunk-4JENRIWS.js +1 -0
  11. package/public/build/_shared/chunk-IWPB7HVR.js +75 -0
  12. package/public/build/_shared/chunk-XQMVET66.js +916 -0
  13. package/public/build/entry.client-LYPBBYXO.js +1 -0
  14. package/public/build/manifest-87DFCC32.js +1 -0
  15. package/public/build/root-YFFMOAIE.js +1 -0
  16. package/public/build/routes/$repo-ORF3ZRBA.js +264 -0
  17. package/public/build/routes/index-JOOJGTNK.js +48 -0
  18. package/.eslintrc.json +0 -23
  19. package/.github/workflows/bump-version.yml +0 -43
  20. package/.github/workflows/test-and-build.yml +0 -40
  21. package/.husky/pre-commit +0 -4
  22. package/.vscode/extensions.json +0 -7
  23. package/.vscode/launch.json +0 -24
  24. package/.vscode/settings.json +0 -6
  25. package/CONTRIBUTING.md +0 -26
  26. package/dev.js +0 -21
  27. package/post-build.js +0 -14
  28. package/project-statement.md +0 -43
  29. package/public/favicon.ico +0 -0
  30. package/remix.config.js +0 -21
  31. package/remix.env.d.ts +0 -2
  32. package/server.ts +0 -100
  33. package/src/analyzer/analyze.server.ts +0 -322
  34. package/src/analyzer/analyze.test.ts +0 -30
  35. package/src/analyzer/args.server.ts +0 -34
  36. package/src/analyzer/coauthors.server.ts +0 -17
  37. package/src/analyzer/constants.ts +0 -1
  38. package/src/analyzer/git-caller.ts +0 -117
  39. package/src/analyzer/hydrate.server.ts +0 -186
  40. package/src/analyzer/index.ts +0 -4
  41. package/src/analyzer/log.server.ts +0 -94
  42. package/src/analyzer/model.ts +0 -110
  43. package/src/analyzer/postprocessing.server.ts +0 -70
  44. package/src/analyzer/queue.ts +0 -87
  45. package/src/analyzer/util.test.ts +0 -8
  46. package/src/analyzer/util.ts +0 -203
  47. package/src/authorUnionUtil.test.ts +0 -78
  48. package/src/authorUnionUtil.ts +0 -71
  49. package/src/components/AuthorDistFragment.tsx +0 -27
  50. package/src/components/AuthorDistOther.tsx +0 -22
  51. package/src/components/Chart.tsx +0 -379
  52. package/src/components/Details.tsx +0 -296
  53. package/src/components/EnumSelect.tsx +0 -26
  54. package/src/components/GlobalInfo.tsx +0 -56
  55. package/src/components/HiddenFiles.tsx +0 -84
  56. package/src/components/Legend.tsx +0 -123
  57. package/src/components/LegendFragment.tsx +0 -29
  58. package/src/components/LegendOther.tsx +0 -42
  59. package/src/components/Main.tsx +0 -102
  60. package/src/components/Options.tsx +0 -36
  61. package/src/components/Providers.tsx +0 -88
  62. package/src/components/SearchBar.tsx +0 -110
  63. package/src/components/SidePanel.tsx +0 -11
  64. package/src/components/Spacer.tsx +0 -71
  65. package/src/components/Toggle.tsx +0 -58
  66. package/src/components/Tooltip.tsx +0 -124
  67. package/src/components/util.tsx +0 -176
  68. package/src/const.ts +0 -6
  69. package/src/contexts/ClickedContext.ts +0 -17
  70. package/src/contexts/DataContext.ts +0 -12
  71. package/src/contexts/MetricContext.ts +0 -12
  72. package/src/contexts/OptionsContext.ts +0 -51
  73. package/src/contexts/PathContext.ts +0 -16
  74. package/src/contexts/SearchContext.ts +0 -19
  75. package/src/entry.client.tsx +0 -10
  76. package/src/entry.server.tsx +0 -23
  77. package/src/extension-color.ts +0 -34
  78. package/src/hooks.ts +0 -26
  79. package/src/lang-map.d.ts +0 -3
  80. package/src/metrics.ts +0 -363
  81. package/src/root.tsx +0 -38
  82. package/src/routes/index.tsx +0 -62
  83. package/src/routes/repo.tsx +0 -105
  84. package/src/util.ts +0 -55
  85. package/truckconfig.json +0 -22
  86. package/tsconfig.json +0 -22
package/README.md CHANGED
@@ -18,9 +18,9 @@ To check if these programs are installed, and what version you have, run `node -
18
18
 
19
19
  ## [Get started](#get-started)
20
20
 
21
- 1. In your favorite shell (for example cmd, PowerShell, etc.), navigate to the root directory of a git project you want to visualize.
22
- 2. Execute the command `npx git-truck@latest`. Click `y` if it asks you to download the tool. A blank browser-window will open and Git Truck will now start analyzing your project (This might take a while to run, especially on big projects, you can follow the progress in your terminal). If you get an error in the terminal, you can try installing the tool globally by running `npm i -g git-truck@latest` and then run `git-truck` instead.
23
- 3. When Git Truck is done analyzing your project, it will show the visualization in your browser. Enjoy!
21
+ 1. Within a git repository, or a directory containing git repositories, run the command `npx git-truck@latest`.
22
+ 2. Press `y` if it asks you to download the package.
23
+ 3. The application will now open in your default browser.
24
24
 
25
25
  ## [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)
26
26
 
@@ -38,19 +38,23 @@ npx git-truck [args]
38
38
 
39
39
  ### [Arguments](#arguments)
40
40
 
41
- | arg | description | default value |
42
- | :--------: | :-------------------------------------------------------------------: | :----------------: |
43
- | `--branch` | branch name | checked out branch |
44
- | `--path` | path to git repository | current directory |
45
- | `--log` | output log level. See [here](./src/analyzer/log.server.ts) for values | - |
46
- | `--port` | port to use for the program | 3000 |
41
+ | arg | description | default value |
42
+ | :------------------: | :-------------------------------------------------------------------: | :----------------: |
43
+ | `--branch` | branch name | checked out branch |
44
+ | `--path` | path to a folder or a git repository | current directory |
45
+ | `--log` | output log level. See [here](./src/analyzer/log.server.ts) for values | - |
46
+ | `--port` | port to use for the program | 3000 |
47
+ | `--invalidate-cache` | bypass analyzer cache manually | - |
48
+
49
+ **Note:** Using `--invalidate-cache` will cause the analyzer to run every time the client talks to the server.
47
50
 
48
51
  ### [Configuration](#configuration)
49
52
 
50
53
  You can add a `truckconfig.json` file to the root of your project, where you can define the arguments you want.
51
- Additionally you can define which git-aliases should be considered as the same person.
54
+ 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.
52
55
  You can also define files to ignore.
53
- Example:
56
+
57
+ **Example:**
54
58
 
55
59
  ```json
56
60
  {
@@ -60,7 +64,7 @@ Example:
60
64
  ["Bob", "Bobby Bob"],
61
65
  ["Alice", "aliiii", "alice alice"]
62
66
  ],
63
- "hiddenFiles": ["package-lock.json", "*.bin", "*.svg"]
67
+ "hiddenFiles": ["package-lock.json", "*.bin", "*.svg"],
68
+ "invalidateCache": true
64
69
  }
65
-
66
70
  ```