git-truck 0.0.0-de7c4e6 → 0.0.0-e01892a
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 +44 -90
- 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 +35820 -220690
- package/package.json +178 -121
- package/build/_assets/App-G6V2GHO3.css +0 -3
- package/build/_assets/Chart-C7HOIFWY.css +0 -26
- package/build/_assets/index-K5E2NP2H.css +0 -52
- package/build/_assets/vars-TECAP2OK.css +0 -25
- package/build/index.js +0 -190549
- package/public/build/_assets/App-G6V2GHO3.css +0 -3
- package/public/build/_assets/Chart-C7HOIFWY.css +0 -26
- package/public/build/_assets/index-K5E2NP2H.css +0 -52
- package/public/build/_assets/truck-7F5JWBYT.gif +0 -0
- package/public/build/_assets/vars-TECAP2OK.css +0 -25
- package/public/build/_shared/chunk-2BPXJFRU.js +0 -67
- package/public/build/_shared/chunk-2EHCKJST.js +0 -1
- package/public/build/_shared/chunk-FMS45555.js +0 -1
- package/public/build/_shared/chunk-XMAWJ27N.js +0 -26
- package/public/build/_shared/chunk-Y7QOL3BF.js +0 -238
- package/public/build/entry.client-YPWZXPQ4.js +0 -1
- package/public/build/manifest-B9DFC470.js +0 -1
- package/public/build/root-4FO5NL4Q.js +0 -1
- package/public/build/routes/$repo.$-KLZOSV6H.js +0 -350
- package/public/build/routes/index-AJLEUMMK.js +0 -61
- /package/build/{_assets/truck-7F5JWBYT.gif → client/assets/truck-BgAoc4Gr.gif} +0 -0
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { getLatestVersion } from "./assets/util.server-DIX86N1-.js";
|
|
2
|
+
import { createRequestHandler } from "@react-router/express";
|
|
3
|
+
import express from "express";
|
|
4
|
+
const name = "git-truck";
|
|
5
|
+
const version = "0.0.0-e01892a";
|
|
6
|
+
const description = "Visualizing a Git repository";
|
|
7
|
+
const license = "MIT";
|
|
8
|
+
const main = "./cli.js";
|
|
9
|
+
const bin = "./cli.js";
|
|
10
|
+
const files = [
|
|
11
|
+
"LICENSE",
|
|
12
|
+
"README.md",
|
|
13
|
+
"build/server",
|
|
14
|
+
"build/client",
|
|
15
|
+
"public/",
|
|
16
|
+
"cli.js"
|
|
17
|
+
];
|
|
18
|
+
const type = "module";
|
|
19
|
+
const scripts = {
|
|
20
|
+
"test": "npm run test:e2e && npm run test:unit",
|
|
21
|
+
"test:unit": "vitest run",
|
|
22
|
+
"test:unit:watch": "vitest watch",
|
|
23
|
+
"test:e2e": "npx playwright test",
|
|
24
|
+
"test:e2e:headed": "npx playwright test --headed",
|
|
25
|
+
"pretest:e2e": "npm run build",
|
|
26
|
+
"pretest:e2e:headed": "npm run build",
|
|
27
|
+
"build": "cross-env NODE_ENV=production npm run build-vite && npm run build-cli",
|
|
28
|
+
"build-cli": "cross-env NODE_ENV=production tsdown",
|
|
29
|
+
"build-vite": "react-router build",
|
|
30
|
+
"dev": "cross-env NODE_ENV=development tsx ./src/cli.ts",
|
|
31
|
+
"dev:debug": "cross-env NODE_ENV=development tsx ./src/cli.ts --log debug",
|
|
32
|
+
"start": "cross-env NODE_ENV=production node .",
|
|
33
|
+
"clean": "npx -y rimraf build .react-router .cache .temp cli.js cli.cjs",
|
|
34
|
+
"typecheck": "react-router typegen && tsc -b",
|
|
35
|
+
"typegen:watch": "react-router typegen --watch",
|
|
36
|
+
"pub-pre": "npm version prerelease && npm publish --tag next",
|
|
37
|
+
"pub-exp": "node ./scripts/publish-experimental",
|
|
38
|
+
"prepublishOnly": "npm run clean && npm run build",
|
|
39
|
+
"format:write": "prettier --log-level warn --write src scripts e2e",
|
|
40
|
+
"lint:fix": "eslint --fix --cache",
|
|
41
|
+
"check:write": "npm run format:write && npm run lint:fix",
|
|
42
|
+
"check": "npm run format:check && npm run lint",
|
|
43
|
+
"format:check": "prettier --check src scripts e2e",
|
|
44
|
+
"lint": "eslint --cache",
|
|
45
|
+
"prepare": "node .husky/install.mjs",
|
|
46
|
+
"update-deps": "npx npm-check-updates -i",
|
|
47
|
+
"knip": "knip"
|
|
48
|
+
};
|
|
49
|
+
const dependencies = {
|
|
50
|
+
"@duckdb/node-api": "^1.3.1-alpha.23",
|
|
51
|
+
"@react-router/express": "^7.6.3"
|
|
52
|
+
};
|
|
53
|
+
const devDependencies = {
|
|
54
|
+
"@headlessui/react": "^2.2.4",
|
|
55
|
+
"@mdi/js": "^7.4.47",
|
|
56
|
+
"@mdi/react": "^1.6.1",
|
|
57
|
+
"@playwright/test": "^1.53.2",
|
|
58
|
+
"@react-router/dev": "^7.6.3",
|
|
59
|
+
"@react-router/fs-routes": "^7.6.3",
|
|
60
|
+
"@react-router/node": "^7.6.3",
|
|
61
|
+
"@tailwindcss/vite": "^4.1.11",
|
|
62
|
+
"@types/byte-size": "^8.1.2",
|
|
63
|
+
"@types/color-convert": "^2.0.4",
|
|
64
|
+
"@types/d3": "^7.4.3",
|
|
65
|
+
"@types/d3-hierarchy": "^3.1.7",
|
|
66
|
+
"@types/express": "^4.17.22",
|
|
67
|
+
"@types/express-serve-static-core": "^5.0.6",
|
|
68
|
+
"@types/node": "^22.15.30",
|
|
69
|
+
"@types/randomstring": "^1.3.0",
|
|
70
|
+
"@types/react": "^19.1.8",
|
|
71
|
+
"@types/react-detect-offline": "^2.4.5",
|
|
72
|
+
"@types/react-dom": "^19.1.6",
|
|
73
|
+
"@types/semver": "^7.7.0",
|
|
74
|
+
"@types/sha1": "^1.1.5",
|
|
75
|
+
"@types/yargs-parser": "^21.0.3",
|
|
76
|
+
"@typescript-eslint/eslint-plugin": "^8.35.1",
|
|
77
|
+
"@typescript-eslint/parser": "^8.35.1",
|
|
78
|
+
"ansi-colors": "^4.1.3",
|
|
79
|
+
"byte-size": "^9.0.1",
|
|
80
|
+
"clsx": "^2.1.1",
|
|
81
|
+
"color-convert": "^3.1.0",
|
|
82
|
+
"cross-env": "^7.0.3",
|
|
83
|
+
"d3": "^7.9.0",
|
|
84
|
+
"d3-hierarchy": "^3.1.2",
|
|
85
|
+
"dotenv": "^17.0.1",
|
|
86
|
+
"eslint": "^8.57.1",
|
|
87
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
88
|
+
"eslint-plugin-import": "^2.32.0",
|
|
89
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
90
|
+
"eslint-plugin-react": "^7.37.5",
|
|
91
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
92
|
+
"express": "^5.1.0",
|
|
93
|
+
"get-port": "^7.1.0",
|
|
94
|
+
"husky": "^9.1.7",
|
|
95
|
+
"ignore": "^7.0.5",
|
|
96
|
+
"knip": "^5.61.3",
|
|
97
|
+
"language-map": "^1.5.0",
|
|
98
|
+
"lint-staged": "^16.1.2",
|
|
99
|
+
"nanospinner": "^1.2.2",
|
|
100
|
+
"npm-check-updates": "^18.0.1",
|
|
101
|
+
"open": "^10.1.2",
|
|
102
|
+
"prettier": "^3.6.2",
|
|
103
|
+
"prettier-plugin-tailwindcss": "^0.6.13",
|
|
104
|
+
"randomstring": "^1.3.1",
|
|
105
|
+
"react": "^19.1.0",
|
|
106
|
+
"react-colorful": "^5.6.1",
|
|
107
|
+
"react-compound-slider": "^3.4.0",
|
|
108
|
+
"react-datepicker": "^8.4.0",
|
|
109
|
+
"react-detect-offline": "^2.4.5",
|
|
110
|
+
"react-device-detect": "^2.2.3",
|
|
111
|
+
"react-dom": "^19.1.0",
|
|
112
|
+
"react-github-btn": "^1.4.0",
|
|
113
|
+
"react-router": "^7.6.3",
|
|
114
|
+
"react-router-devtools": "^5.0.6",
|
|
115
|
+
"react-spinners": "^0.17.0",
|
|
116
|
+
"react-tiny-popover": "^8.1.6",
|
|
117
|
+
"react-use-size": "^5.0.1",
|
|
118
|
+
"semver": "^7.7.2",
|
|
119
|
+
"sha1": "^1.1.1",
|
|
120
|
+
"tailwind-merge": "^3.3.1",
|
|
121
|
+
"tailwindcss": "^4.1.11",
|
|
122
|
+
"tsdown": "^0.12.9",
|
|
123
|
+
"tsx": "^4.20.3",
|
|
124
|
+
"typescript": "5.8",
|
|
125
|
+
"typescript-eslint": "^8.35.1",
|
|
126
|
+
"uniqolor": "^1.1.1",
|
|
127
|
+
"vite": "npm:rolldown-vite@^7.0.4",
|
|
128
|
+
"vite-tsconfig-paths": "^5.1.4",
|
|
129
|
+
"vitest": "^3.2.4",
|
|
130
|
+
"yargs-parser": "^22.0.0"
|
|
131
|
+
};
|
|
132
|
+
const tsdown = {
|
|
133
|
+
"entry": "./src/cli.ts",
|
|
134
|
+
"outDir": ".",
|
|
135
|
+
"treeshake": true,
|
|
136
|
+
"clean": false,
|
|
137
|
+
"external": ["vite", "lightningcss"],
|
|
138
|
+
"cjs-interop": true,
|
|
139
|
+
"env": { "NODE_ENV": "production" }
|
|
140
|
+
};
|
|
141
|
+
const prettier = {
|
|
142
|
+
"semi": false,
|
|
143
|
+
"printWidth": 120,
|
|
144
|
+
"trailingComma": "none",
|
|
145
|
+
"plugins": ["prettier-plugin-tailwindcss"]
|
|
146
|
+
};
|
|
147
|
+
const knip = { "entry": [
|
|
148
|
+
".react-router/**/*",
|
|
149
|
+
"src/**/*.{ts,tsx}",
|
|
150
|
+
"src/*.{ts,tsx}",
|
|
151
|
+
"scripts/**/*.{ts,js}"
|
|
152
|
+
] };
|
|
153
|
+
const engines = { "node": ">=22.0.0" };
|
|
154
|
+
const repository = {
|
|
155
|
+
"type": "git",
|
|
156
|
+
"url": "git+https://github.com/git-truck/git-truck.git"
|
|
157
|
+
};
|
|
158
|
+
const bugs = { "url": "https://github.com/git-truck/git-truck/issues" };
|
|
159
|
+
const homepage = "https://github.com/git-truck/git-truck#readme";
|
|
160
|
+
var package_default = {
|
|
161
|
+
name,
|
|
162
|
+
version,
|
|
163
|
+
"private": false,
|
|
164
|
+
description,
|
|
165
|
+
license,
|
|
166
|
+
main,
|
|
167
|
+
bin,
|
|
168
|
+
files,
|
|
169
|
+
type,
|
|
170
|
+
scripts,
|
|
171
|
+
dependencies,
|
|
172
|
+
devDependencies,
|
|
173
|
+
tsdown,
|
|
174
|
+
prettier,
|
|
175
|
+
"lint-staged": { "{src,scripts}/**/*.{ts,tsx,js,mjs}": ["eslint --cache --fix", "prettier --write"] },
|
|
176
|
+
knip,
|
|
177
|
+
engines,
|
|
178
|
+
repository,
|
|
179
|
+
bugs,
|
|
180
|
+
homepage
|
|
181
|
+
};
|
|
182
|
+
const app = express();
|
|
183
|
+
const getLatestVersionPromise = getLatestVersion();
|
|
184
|
+
app.use(createRequestHandler({
|
|
185
|
+
build: () => import("./assets/server-build-DEjTAloe.js"),
|
|
186
|
+
async getLoadContext() {
|
|
187
|
+
return {
|
|
188
|
+
installedVersion: package_default.version,
|
|
189
|
+
latestVersion: await getLatestVersionPromise
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
}));
|
|
193
|
+
export { app };
|