-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
73 lines (73 loc) · 3.81 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
{
"name": "polo",
"version": "1.4.4-beta.7",
"repository": "https://github.com/wufe/polo",
"author": "Simone Bembi <bembi@archiproducts.com>",
"license": "MIT",
"private": true,
"workspaces": {
"packages": [
"client/*"
],
"nohoist": [
"**/tailwindcss",
"**/tailwind-nord",
"**/@tailwindcss/**"
]
},
"scripts": {
"dev": "cross-env POLO_CWD=$INIT_CWD run-p dev:server serve",
"dev:server": "nodemon --watch . --ext 'go' --signal SIGTERM --exec 'yarn start:server'",
"start:server": "cross-env GO_ENV=development go run cmd/server/main.go",
"build:docker": "docker build -t polo:local -f ./docker/Dockerfile .",
"build:client": "cross-env NODE_ENV=development webpack --config webpack.config.js",
"build:client:prod": "cross-env NODE_ENV=production webpack --config webpack.config.js",
"build:prod": "run-s clean build:client:prod build:server:prod",
"build:server:prod": "go build -o dist/polo cmd/server/main.go",
"clean": "run-p clean:root",
"clean:root": "rimraf dist pkg/services/static release",
"pro:link": "zx scripts/link-pro.mjs",
"pro:unlink": "zx scripts/unlink-pro.mjs",
"serve": "cross-env TAILWIND_MODE=watch node --max-old-space-size=8192 node_modules/webpack/bin/webpack.js serve",
"build:release": "run-s clean build:client:prod build:release:windows build:release:macos build:release:linux",
"build:release:windows": "cross-env GOOS=windows GOARCH=amd64 go build -o release/polo-windows-amd64.exe cmd/server/main.go",
"build:release:macos": "run-s build:release:macos:amd64 build:release:macos:arm64",
"build:release:macos:amd64": "cross-env GOOS=darwin GOARCH=amd64 go build -ldflags \"-X github.com/wufe/polo/pkg/storage.configurationFolder=/usr/local/etc/polo\" -o release/polo-darwin-amd64 cmd/server/main.go",
"build:release:macos:arm64": "cross-env GOOS=darwin GOARCH=arm64 go build -ldflags \"-X github.com/wufe/polo/pkg/storage.configurationFolder=/usr/local/etc/polo\" -o release/polo-darwin-arm64 cmd/server/main.go",
"build:release:linux": "run-s build:release:linux:amd64 build:release:linux:arm64",
"build:release:linux:amd64": "cross-env GOOS=linux GOARCH=amd64 go build -ldflags \"-X github.com/wufe/polo/pkg/storage.configurationFolder=/etc/polo\" -o release/polo-linux-amd64 cmd/server/main.go",
"build:release:linux:arm64": "cross-env GOOS=linux GOARCH=arm64 go build -ldflags \"-X github.com/wufe/polo/pkg/storage.configurationFolder=/etc/polo\" -o release/polo-linux-arm64 cmd/server/main.go",
"test": "cross-env POLO_CWD=$INIT_CWD GO_ENV=development go test -v ./cmd/tests/...",
"test:file": "cross-env POLO_CWD=$INIT_CWD GO_ENV=development go test -v",
"test:watch": "cross-env POLO_CWD=$INIT_CWD GO_ENV=development gow test -v ./cmd/tests/...",
"test:trace": "cross-env POLO_CWD=$INIT_CWD GO_ENV=development POLO_DIAGNOSTICS=true go test -v ./cmd/tests/...",
"test:trace:watch": "cross-env POLO_CWD=$INIT_CWD GO_ENV=development POLO_DIAGNOSTICS=true gow test -v ./cmd/tests/...",
"test:prod": "cross-env POLO_CWD=$INIT_CWD GO_ENV=development go test ./cmd/tests/...",
"test:prod:watch": "cross-env POLO_CWD=$INIT_CWD GO_ENV=development gow test ./cmd/tests/...",
"prepare": "zx ./scripts/prepare.mjs"
},
"devDependencies": {
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"commitizen": "^4.2.4",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "3.3.0",
"husky": "^7.0.0",
"nodemon": "^2.0.15",
"npm-run-all": "^4.1.5",
"webpack": "^5.70.0",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.15.1",
"zx": "^4.2.0"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
}
}