gstatx 0.1.0
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/README.md +15 -0
- package/dist/index.js +2 -0
- package/package.json +42 -0
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# gstatx
|
|
2
|
+
|
|
3
|
+
To install dependencies:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
bun install
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
To run:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
bun run src/index.ts
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
This project was created using `bun init` in bun v1.2.14. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
async function c(){let b=process.argv.slice(2);if(b.length===0)console.log("Usage: gstatx <repo-path> [repo-path2 ...]"),console.log(" Export statistics for one or more git repositories"),process.exit(1);console.log("Repositories to analyze:",b)}c().catch(console.error);
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "gstatx",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Export stats of a repo or list of repos",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=18.0.0"
|
|
8
|
+
},
|
|
9
|
+
"bin": {
|
|
10
|
+
"gstatx": "dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"main": "dist/index.js",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "bun build src/index.ts --outdir dist --target node --minify",
|
|
18
|
+
"prepack": "bun run build",
|
|
19
|
+
"start": "bun run src/index.ts",
|
|
20
|
+
"lint": "biome lint .",
|
|
21
|
+
"format": "biome format --write .",
|
|
22
|
+
"check": "biome check .",
|
|
23
|
+
"check:fix": "biome check --write ."
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"git",
|
|
27
|
+
"repository",
|
|
28
|
+
"stats",
|
|
29
|
+
"export",
|
|
30
|
+
"cli"
|
|
31
|
+
],
|
|
32
|
+
"author": "Mohamed IDRISSI<med.idrissi@outlook.com>",
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@biomejs/biome": "^2.3.10",
|
|
36
|
+
"@types/bun": "latest",
|
|
37
|
+
"@types/node": "^25.0.3"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"typescript": "^5"
|
|
41
|
+
}
|
|
42
|
+
}
|