-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
package.json
45 lines (45 loc) · 2.99 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"name": "chatgpt-source-watch",
"version": "0.0.1",
"description": "Analyzing the evolution of ChatGPT's codebase through time with curated archives and scripts",
"author": "Glenn 'devalias' Grant (https://devalias.net/)",
"license": "MIT",
"homepage": "https://github.com/0xdevalias/chatgpt-source-watch#readme",
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/0xdevalias/chatgpt-source-watch.git"
},
"bugs": {
"url": "https://github.com/0xdevalias/chatgpt-source-watch/issues"
},
"keywords": [
"chatgpt",
"webpack",
"archive"
],
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"format:unpacked": "npx @biomejs/biome format --write unpacked && npx prettier --write --single-quote false unpacked/**/*.css && npx prettier --write --single-quote false unpacked/**/*.css",
"wakaru": "npx @wakaru/cli",
"wakaru:unminify-chunk": "f() { CHUNK=\"$1\"; shift; npx @wakaru/cli all \"unpacked/_next/static/chunks/${CHUNK}.js\" --unpacker-output \"stage2-unpacked/${CHUNK}\" --unminify-output \"stage3-unminified/${CHUNK}\" --perf \"$@\"; }; f",
"wakaru:clean-chunk": "f() { CHUNK=\"$1\"; if [ -z \"$CHUNK\" ]; then echo 'Error: No chunk provided' >&2; exit 1; fi; rm -rf \"./stage2-unpacked/${CHUNK}\" \"./stage3-unminified/${CHUNK}\"; }; f",
"webcrack": "npx webcrack",
"webcrack:unminify-chunk": "f() { CHUNK=\"$1\"; shift; npx webcrack \"unpacked/_next/static/chunks/${CHUNK}.js\" --output \"stage3-unminified-webcrack/${CHUNK}\" \"$@\"; }; f",
"webcrack:clean-chunk": "f() { CHUNK=\"$1\"; if [ -z \"$CHUNK\" ]; then echo 'Error: No chunk provided' >&2; exit 1; fi; rm -rf \"./stage3-unminified-webcrack/${CHUNK}\"; }; f",
"madge:chunk": "f() { CHUNK=\"$1\"; if [ -z \"$CHUNK\" ]; then echo 'Error: No chunk provided' >&2; exit 1; fi; npm run --silent madge:svg-chunk \"$CHUNK\"; npm run --silent madge:dot-chunk \"$CHUNK\"; npm run --silent madge:json-chunk \"$CHUNK\"; }; f",
"madge:svg-chunk": "f() { CHUNK=\"$1\"; if [ -z \"$CHUNK\" ]; then echo 'Error: No chunk provided' >&2; exit 1; fi; echo 'Generating svg...'; mkdir -p \"$(dirname \"graphs/${CHUNK}\")\"; npx madge --image \"graphs/${CHUNK}.svg\" \"stage3-unminified/${CHUNK}\"; }; f",
"madge:dot-chunk": "f() { CHUNK=\"$1\"; if [ -z \"$CHUNK\" ]; then echo 'Error: No chunk provided' >&2; exit 1; fi; echo 'Generating dot...'; mkdir -p \"$(dirname \"graphs/${CHUNK}\")\"; npx madge --dot \"stage3-unminified/${CHUNK}\" > \"graphs/${CHUNK}.gv\" ; }; f",
"madge:json-chunk": "f() { CHUNK=\"$1\"; if [ -z \"$CHUNK\" ]; then echo 'Error: No chunk provided' >&2; exit 1; fi; echo 'Generating json...'; mkdir -p \"$(dirname \"graphs/${CHUNK}\")\"; npx madge --json \"stage3-unminified/${CHUNK}\" > \"graphs/${CHUNK}.json\" ; }; f"
},
"dependencies": {
"@babel/parser": "^7.23.6"
},
"devDependencies": {
"@biomejs/biome": "^1.4.1",
"@wakaru/cli": "^0.0.8",
"madge": "^6.1.0",
"prettier": "^3.1.1",
"webcrack": "^2.12.0"
}
}