forked from jinyaoMa/my-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
45 lines (45 loc) · 2.53 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": "my-app",
"version": "1.0.0",
"description": "My App is a continuously updated personal service collection.",
"author": "jinyaoMa",
"license": "MIT",
"scripts": {
"wails:dev": "cross-env MY_APP_LOG=0 .tools\\wails dev -s true -noreload",
"wails:build": ".tools\\wails build --platform windows/amd64",
"upx:compress": ".tools\\upx -9 build/bin/MyApp.exe",
"air:dev": "cross-env MY_APP_AIR=1 MY_APP_LOG=0 .tools\\air -c air/.air.toml",
"swag:docs": ".tools\\swag init -g backend/web/api/api.go -o backend/web/swagger",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"icons:build": "pnpm --filter @jinyaoma/my-app-icons exec node build.js",
"design:build": "pnpm --filter @jinyaoma/my-app-design exec vue-tsc --noEmit && pnpm --filter @jinyaoma/my-app-design exec vite build",
"update:dependencies": "pnpm up -r --latest && go get -u && go mod tidy",
"install:assets": "mkdirp backend/wails/assets && echo \"\" > backend/wails/assets/index.html",
"install:frontend": "pnpm icons:build && pnpm design:build",
"install:certs": "mkdirp backend/web/certs && openssl req -x509 -nodes -days 36524 -newkey rsa:2048 -keyout backend/web/certs/localhost.key -out backend/web/certs/localhost.crt -subj \"//SKIP=skip/CN=localhost\"",
"install:docs": "pnpm swag:docs && pnpm docs:build",
"install:build": "go mod tidy && pnpm wails:build && pnpm upx:compress",
"install": "pnpm install:assets && pnpm install:frontend && pnpm install:certs && pnpm install:docs && pnpm install:build",
"preinstall:air": "cross-env GOBIN=\"%cd%\\.tools\" go install github.com/cosmtrek/air@latest",
"preinstall:swag": "cross-env GOBIN=\"%cd%\\.tools\" go install github.com/swaggo/swag/cmd/swag@latest",
"preinstall:upx": "curl -L https://github.com/upx/upx/releases/download/v3.96/upx-3.96-win64.zip > upx.zip && unzip -p upx.zip '*/upx.exe' > .tools/upx.exe && rm upx.zip",
"preinstall:wails": "cross-env GOBIN=\"%cd%\\.tools\" go install github.com/wailsapp/wails/v2/cmd/wails@latest",
"preinstall": "pnpm preinstall:air && pnpm preinstall:wails && pnpm preinstall:swag && pnpm preinstall:upx"
},
"devDependencies": {
"@types/node": "^18.11.9",
"cross-env": "^7.0.3",
"mkdirp": "^1.0.4",
"vitepress": "1.0.0-alpha.27",
"vue": "^3.2.41"
},
"repository": {
"type": "git",
"url": "git+https://github.com/jinyaoMa/my-app.git"
},
"bugs": {
"url": "https://github.com/jinyaoMa/my-app/issues"
},
"homepage": "https://github.com/jinyaoMa/my-app#readme"
}