-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathpackage.json
137 lines (137 loc) · 4.13 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
128
129
130
131
132
133
134
135
136
137
{
"name": "AppToolkit",
"private": true,
"version": "0.4.1",
"description": "The Frontend Application Toolkit",
"scripts": {
"setup": "npm run install:main && npm run install:renderer",
"install:main": "rm -rf node_modules && ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ npm install",
"install:renderer": "rm -rf renderer/node_modules && cd renderer && npm install",
"start": "concurrently \"npm run watch\" \"wait-on http://localhost:3000 && npm run start:electron\"",
"start:electron": "npm run copy:static && NODE_ENV=development electron ./dist",
"copy:static": "cp -R ./main/data ./dist",
"watch": "rm -rf ./dist && npm run watch:renderer & npm run watch:main",
"watch:renderer": "cd ./renderer && npm start",
"watch:main": "tsc --build ./main/tsconfig.dev.json -w",
"build": "rm -rf ./dist && npm run build:renderer && npm run build:main",
"build:renderer": "cd ./renderer && npm run build",
"build:main": "tsc --build ./main/tsconfig.json",
"build:app": "NPM_CONFIG_ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ electron-builder build --x64",
"package": "rm -rf release && npm run build && npm run copy:static && npm run build:app && npm run upload:app",
"upload:app": "ts-node ./scripts/uploadApp",
"lint": "npm run eslint && npm run stylelint",
"eslint": "eslint --ext .ts,.tsx,.js,.jsx ./",
"eslint:fix": "npm run eslint -- --fix",
"stylelint": "stylelint \"**/*.{css,scss,less}\"",
"prepare": "husky install"
},
"main": "./dist/index.js",
"build": {
"appId": "AppToolkit",
"productName": "AppToolkit",
"files": [
"dist/**/*",
"package.json",
"resources"
],
"extraResources": {
"from": "./main/data",
"to": "data"
},
"publish": [
{
"provider": "generic",
"url": "https://iceworks.oss-cn-hangzhou.aliyuncs.com/toolkit/${os}"
}
],
"afterSign": "scripts/notarize.js",
"directories": {
"buildResources": "resource",
"output": "release"
},
"copyright": "Copyright © 2021-present AppToolkit",
"mac": {
"target": [
"dmg",
"zip"
],
"icon": "resources/mac/icon.icns",
"entitlements": "resources/entitlements.mac.plist",
"entitlementsInherit": "resources/entitlements.mac.plist"
},
"dmg": {
"window": {
"width": 540,
"height": 380
},
"contents": [
{
"x": 410,
"y": 180,
"type": "link",
"path": "/Applications"
},
{
"x": 130,
"y": 180,
"type": "file"
}
],
"iconSize": 128
}
},
"dependencies": {
"@appworks/constant": "^0.1.3",
"@appworks/recorder": "^1.0.0",
"@shockpkg/hdi-mac": "^1.6.1",
"about-window": "^1.14.0",
"adm-zip": "^0.5.5",
"all-node-versions": "^8.0.0",
"compare-versions": "^3.6.0",
"cross-spawn": "^7.0.3",
"decompress": "^4.2.1",
"electron-log": "^4.3.4",
"electron-store": "^8.0.0",
"electron-updater": "^4.3.9",
"execa": "^5.0.0",
"fs-extra": "^9.1.0",
"globby": "^11.0.3",
"gulp": "^4.0.2",
"gulp-zip": "^5.1.0",
"ice-npm-utils": "^2.1.1",
"ini": "^2.0.0",
"node-cache": "^5.1.2",
"node-fetch": "^2.6.1",
"package-json": "^7.0.0",
"ping": "^0.4.1",
"shell-profile": "^1.0.3",
"shelljs": "^0.8.4",
"ssh-config": "^4.0.6",
"ssh-keygen": "^0.5.0",
"sudo-prompt": "^9.2.1",
"tslib": "^2.2.0",
"url-join": "^4.0.1"
},
"devDependencies": {
"@commitlint/cli": "^12.1.1",
"@iceworks/spec": "^1.0.0",
"@types/decompress": "^4.2.3",
"@types/gulp": "^4.0.9",
"@types/gulp-zip": "^4.0.2",
"@types/ini": "^1.3.30",
"@types/node-fetch": "^2.5.10",
"@types/shelljs": "^0.8.8",
"@types/url-join": "^4.0.1",
"ali-oss": "^6.15.2",
"concurrently": "^5.1.0",
"electron": "^12.0.0",
"electron-builder": "^22.10.5",
"electron-notarize": "^1.0.0",
"eslint": "^6.8.0",
"husky": "^6.0.0",
"stylelint": "^13.2.0",
"ts-node": "^10.0.0",
"typescript": "^4.0.0",
"wait-on": "^5.3.0"
}
}