-
-
Notifications
You must be signed in to change notification settings - Fork 228
/
package.json
127 lines (127 loc) · 5.42 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
118
119
120
121
122
123
124
125
126
127
{
"name": "hfs",
"version": "0.54.0",
"description": "HTTP File Server",
"keywords": [
"file server",
"http server"
],
"homepage": "https://rejetto.com/hfs",
"license": "GPL-3.0",
"author": "Massimo Melina <a@rejetto.com>",
"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 --audit-level=moderate && 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* hfs.ico plugins dist && find dist -name .DS_Store -o -name storage -exec rm -rf {} + && 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 && npm run dist-bin-win && npm run dist-bin-linux && npm run dist-bin-mac && npm run dist-bin-mac-arm",
"dist-modules": "cp package*.json central.json dist && cd dist && npm ci --omit=dev && cd .. && node prune_modules",
"dist-pre": "cd dist && rm -rf node_modules/@node-rs/crc32-*",
"dist-bin-win": "npm run dist-pre && cd dist && npm i -f --no-save --omit=dev @node-rs/crc32-win32-x64-msvc && pkg . --public -C gzip -t node18-win-x64 && npx resedit-cli --in hfs.exe --icon 1,../hfs.ico --out hfs.exe && zip hfs-windows-x64-$(jq -r .version ../package.json).zip hfs.exe -r plugins && cd ..",
"dist-bin-mac-arm": "npm run dist-pre && cd dist && npm i -f --no-save --omit=dev @node-rs/crc32-darwin-arm64 && pkg . --public -C gzip -t node18-macos-arm64 && zip hfs-mac-arm64-$(jq -r .version ../package.json).zip hfs -r plugins && cd ..",
"dist-bin-mac": "npm run dist-pre && cd dist && npm i -f --no-save --omit=dev @node-rs/crc32-darwin-x64 && pkg . --public -C gzip -t node18-macos-x64 && zip hfs-mac-x64-$(jq -r .version ../package.json).zip hfs -r plugins && cd ..",
"dist-bin-linux": "npm run dist-pre && cd dist && npm i -f --no-save --omit=dev @node-rs/crc32-linux-x64-gnu && pkg . --public -C gzip -t node18-linux-x64 && zip hfs-linux-x64-$(jq -r .version ../package.json).zip hfs -r plugins && cd ..",
"dist-win": "npm run dist-modules && npm run dist-bin-win",
"dist-mac-arm": "npm run dist-modules && npm run dist-bin-mac-arm",
"dist-mac": "npm run dist-modules && npm run dist-bin-mac",
"dist-linux": "npm run dist-modules && npm run dist-bin-linux",
"dist-node": "npm run dist-modules && cd dist && zip hfs-node-$(jq -r .version ../package.json).zip -r * -x *.zip *.exe hfs-* *.log logs"
},
"engines": {
"node": ">=18.5.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/**/*",
"**/node_modules/fswin/x64/*",
"**/node_modules/axios/dist/node/*"
],
"targets": [
"node18-win-x64",
"node18-mac-x64",
"node18-mac-arm64",
"node18-linux-x64"
]
},
"dependencies": {
"@koa/router": "^13.0.1",
"@node-rs/crc32": "^1.10.3",
"@rejetto/kvstorage": "^0.12.2",
"acme-client": "^5.4.0",
"buffer-crc32": "^1.0.0",
"fast-glob": "^3.2.7",
"find-process": "^1.4.7",
"formidable": "^3.5.1",
"fs-x-attributes": "^1.0.2",
"fswin": "^3.24.829",
"iconv-lite": "^0.6.3",
"ip2location-nodejs": "^9.6.0",
"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-rejetto": "^2.1.0",
"open": "^8.4.0",
"qr-creator": "^1.0.0",
"picomatch": "^3.0.1",
"tssrp6a": "^3.0.0",
"unzip-stream": "^0.3.4",
"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/mime-types": "^2.1.1",
"@types/minimist": "^1.2.2",
"@types/mocha": "^9.0.0",
"@types/node": "^18.17.14",
"@types/picomatch": "^2.3.3",
"@types/tough-cookie": "^4.0.2",
"@types/unzipper": "^0.10.5",
"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"
}
}