forked from rejetto/hfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
117 lines (117 loc) · 4.45 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"name": "hfs",
"version": "0.49.2",
"description": "HTTP File Server",
"keywords": [
"file server",
"http server"
],
"homepage": "https://rejetto.com/hfs",
"license": "GPL-3.0",
"author": "Massimo Melina <[email protected]>",
"workspaces": [ "admin", "frontend", "shared", "mui-grid-form" ],
"scripts": {
"watch-server": "cross-env DEV=1 nodemon --ignore tests/ --watch src -e ts,tsx --exec ts-node src",
"watch-server-proxied": "cross-env FRONTEND_PROXY=3005 ADMIN_PROXY=3006 npm run watch-server",
"start-frontend": "npm run start --workspace=frontend",
"start-admin": "npm run start --workspace=admin",
"build-all": "npm audit --omit=dev && rm -rf dist && npm i && npm run build-server && npm run build-frontend && npm run build-admin && echo COMPLETED",
"build-server": "rm -rf dist/src dist/plugins && tsc --target es2018 && touch package.json && cp -v -r package.json central.json README* LICENSE* plugins dist && find dist -name .DS_Store -delete && node afterbuild.js",
"build-frontend": "npm run build --workspace=frontend",
"build-admin": "npm run build --workspace=admin",
"server-for-test": "node dist/src --cwd . --config tests && rm custom.html",
"server-for-test-dev": "cross-env DEV=1 FRONTEND_PROXY=3005 ADMIN_PROXY=3006 nodemon --ignore tests/ --watch src -e ts,tsx --exec ts-node src -- --cwd . --config tests",
"test": "mocha -r ts-node/register 'tests/**/*.ts'",
"pub": "cd dist && npm publish",
"dist": "npm run build-all && npm run dist-bin",
"dist-bin": "npm run dist-modules && cd dist && pkg . --public -C gzip && mv -f hfs-win-x64.exe hfs.exe && zip hfs-windows.zip hfs.exe -r plugins && cp -f hfs-linux-x64 hfs && zip hfs-linux.zip hfs -r plugins && cp -f hfs-macos-x64 hfs && zip hfs-mac.zip hfs -r plugins && cp -f hfs-macos-arm64 hfs && zip hfs-mac-arm.zip hfs -r plugins && rm hfs",
"dist-modules": "cp package*.json central.json dist && cd dist && npm ci --omit=dev && npm run dist-crclib && rm package-lock.json && cd .. && node prune_modules",
"dist-crclib": "npm i -f --no-save --omit=dev @node-rs/crc32-win32-x64-msvc @node-rs/crc32-darwin-arm64 @node-rs/crc32-darwin-x64 @node-rs/crc32-linux-x64-gnu",
"dist-win": "npm run dist-modules && cd dist && pkg . --public -C gzip -t node18-win-x64",
"dist-mac": "npm run dist-modules && cd dist && pkg . --public -C gzip -t node18-macos-arm64",
"dist-node": "npm run dist-modules && cd dist && zip hfs-node.zip -r * -x *.zip *.exe hfs-* *.log logs"
},
"engines": {
"node": ">=18.12.0"
},
"files": [
"central.json",
"src/*",
"admin/*",
"frontend/*",
"plugins/*"
],
"repository": {
"type": "git",
"url": "https://github.com/rejetto/hfs/"
},
"bin": {
"hfs": "src/index.js"
},
"pkg": {
"assets": [
"central.json",
"admin/**/*",
"frontend/**/*"
],
"targets": [
"node18-win-x64",
"node18-mac-x64",
"node18-mac-arm64",
"node18-linux-x64"
]
},
"dependencies": {
"@koa/router": "^10.1.1",
"@node-rs/crc32": "^1.6.0",
"acme-client": "^5.0.0",
"basic-auth": "^2.0.1",
"buffer-crc32": "^0.2.13",
"fast-glob": "^3.2.7",
"find-process": "^1.4.7",
"formidable": "^3.5.1",
"fs-x-attributes": "^1.0.2",
"iconv-lite": "^0.6.3",
"koa": "^2.13.4",
"koa-compress": "^5.1.0",
"koa-mount": "^4.0.0",
"koa-session": "^6.2.0",
"limiter": "^2.1.0",
"lodash": "^4.17.21",
"minimist": "^1.2.6",
"nat-upnp-ts": "^2.0.1",
"open": "^8.4.0",
"tssrp6a": "^3.0.0",
"unzip-stream": "^0.3.1",
"valtio": "^1.10.3",
"yaml": "^2.0.0-10"
},
"devDependencies": {
"@types/archiver": "^5.1.1",
"@types/basic-auth": "^1.1.3",
"@types/formidable": "^3.4.1",
"@types/koa": "^2.13.4",
"@types/koa__router": "^8.0.11",
"@types/koa-compress": "^4.0.3",
"@types/koa-mount": "^4.0.1",
"@types/koa-session": "^5.10.4",
"@types/lodash": "^4.14.178",
"@types/micromatch": "^4.0.2",
"@types/mime-types": "^2.1.1",
"@types/minimist": "^1.2.2",
"@types/mocha": "^9.0.0",
"@types/node": "^18.17.14",
"@types/tough-cookie": "^4.0.2",
"@types/unzipper": "^0.10.5",
"axios": "^0.24.0",
"axios-cookiejar-support": "^4.0.1",
"cross-env": "^7.0.3",
"koa-better-http-proxy": "^0.2.9",
"mocha": "^9.1.3",
"nm-prune": "^5.0.0",
"nodemon": "^2.0.15",
"pkg": "^5.7.0",
"tough-cookie": "^4.0.0",
"ts-node": "^10.4.0"
}
}