forked from rejetto/hfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
54 lines (54 loc) · 1.98 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
{
"name": "hfs",
"version": "0.22.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": [ "server", "admin", "frontend", "shared" ],
"scripts": {
"watch-server": "nodemon --ignore server/tests/ --watch server/src -e ts,tsx --exec ts-node server/src/index.ts",
"watch-shared": "cd shared && tsc --watch",
"start-frontend": "cd frontend && npm run start",
"start-admin": "cd admin && npm run start",
"start": "node dist",
"build-all": "npm audit --omit=dev && rm -rf dist && npm install && npm run build-shared && 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 && cp -v -r package-lock.json server/package.json READ* LICENSE* plugins dist && cd dist && npm ci --production && cd .. && node afterbuild",
"build-frontend": "cd frontend && npm run build",
"build-admin": "cd admin && npm run build",
"build-shared": "cd shared && npx tsc",
"test": "mocha -r ts-node/register 'tests/**/*.ts'",
"dist-node": "cd dist && zip hfs-node.zip -r * -x *.zip *.exe hfs-*",
"dist-bin": "pkg . -C gzip && cd dist && mv -f hfs-win.exe hfs.exe && zip hfs-windows.zip hfs.exe -r plugins && cp -f hfs-linux hfs && zip hfs-linux.zip hfs -r plugins && cp -f hfs-macos hfs && zip hfs-macos.zip hfs -r plugins && rm hfs",
"dist": "npm run build-all && npm run dist-node && npm run dist-bin"
},
"engines": {
"node": ">=16.13.0"
},
"files": [
"dist/**/*"
],
"repository": {
"type": "git",
"url": "https://github.com/rejetto/hfs/"
},
"bin": {
"hfs": "dist/src/index.js"
},
"pkg": {
"assets": [
"dist/admin/**/*",
"dist/frontend/**/*"
],
"targets": [
"node16-win",
"node16-mac",
"node16-linux"
],
"outputPath": "dist"
}
}