-
Notifications
You must be signed in to change notification settings - Fork 26
/
package.json
216 lines (216 loc) · 6.44 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
{
"name": "@jeremyckahn/farmhand",
"version": "1.18.19",
"publishConfig": {
"access": "public"
},
"description": "A farming game",
"main": "public/electron.js",
"unpkg": "build/index.html",
"homepage": "https://www.farmhand.life/",
"type": "module",
"scripts": {
"build": "vite build",
"build:native": "npm run build -- --base='./' && electron-builder --publish=always",
"check:types": "tsc",
"check:types:noerror": "tsc; exit 0",
"dev": "mprocs \"cross-env VITE_TRACKER_URL='ws://localhost:8000' npm run start\" \"npm run start:api\" \"npm run start:backend\" \"npm run start:tracker\"",
"dev:native": "mprocs \"BROWSER=none npm run start\" \"npm run start:api\" \"npm run start:backend\" \"npm run electron\"",
"electron": "wait-on tcp:3000 && electron .",
"print:crops": "npx babel-node --presets @babel/preset-env --presets babel-preset-vite src/scripts/generate-crop-table.js",
"lint": "eslint src --max-warnings=0",
"prettier": "prettier 'src/**/*.js' --write",
"preversion": "npm test -- --run",
"postversion": "git push && git push --tags",
"start": "vite --port=3000",
"start:api": "NODE_OPTIONS=--openssl-legacy-provider vercel dev --listen localhost:3001",
"start:backend": "docker compose up",
"start:tracker": "bittorrent-tracker",
"test": "vitest",
"test:debug": "vitest --inspect-brk --no-file-parallelism --run",
"update-images": "bash update-images.sh"
},
"author": "Jeremy Kahn <jeremyckahn@gmail.com>",
"license": "GPL-2.0-or-later",
"repository": {
"type": "git",
"url": "https://github.com/jeremyckahn/farmhand.git"
},
"engines": {
"node": "18.x"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/node": "^7.20.7",
"@testing-library/dom": "^8.3.0",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^13.2.1",
"@types/dinero.js": "^1.9.0",
"@types/lodash.sortby": "^4.7.7",
"@types/markdown-table": "^2.0.0",
"@types/react": "^17.0.2",
"@types/uuid": "^9.0.2",
"@typescript-eslint/eslint-plugin": "^2.23.0",
"@typescript-eslint/parser": "^2.23.0",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/coverage-v8": "^2.0.5",
"babel-preset-vite": "^1.1.3",
"bittorrent-tracker": "^9.19.0",
"browserslist": "^4.21.9",
"cheerio": "^1.0.0-rc.3",
"cross-env": "^7.0.2",
"electron": "^22.1.0",
"electron-builder": "^24.13.3",
"enzyme": "^3.9.0",
"enzyme-adapter-react-16": "^1.12.1",
"eslint": "^7.13.0",
"eslint-config-react-app": "^5.2.0",
"eslint-plugin-flowtype": "^4.6.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react-hooks": "^2.5.0",
"git-branch-is": "^4.0.0",
"husky": "^4.2.3",
"jest-extended": "^0.11.5",
"jimp": "^0.22.8",
"jsdom": "^16.2.1",
"markdown-table": "^2.0.0",
"mprocs": "^0.6.4",
"node-sass": "^8.0.0",
"nodemon": "^2.0.2",
"npm-run-all": "^4.1.3",
"prettier": "^1.13.7",
"pretty-quick": "^2.0.1",
"sass": "^1.69.5",
"scss-reset": "^1.4.2",
"serve": "^14.2.0",
"vercel": "^28.14.0",
"vite": "^5.0.8",
"vite-plugin-pwa": "^0.20.1",
"vitest": "^2.0.5",
"wait-on": "^6.0.1"
},
"dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@fortawesome/fontawesome-svg-core": "^1.2.27",
"@fortawesome/free-regular-svg-icons": "^5.12.1",
"@fortawesome/free-solid-svg-icons": "^5.12.1",
"@fortawesome/react-fontawesome": "^0.1.9",
"@mui/icons-material": "^5.15.0",
"@mui/lab": "^5.0.0-alpha.156",
"@mui/material": "^5.15.0",
"@mui/styles": "^5.15.0",
"animate.css": "^4.1.0",
"assert": "npm:assert-browserify@^2.0.0",
"axios": "^1.6.0",
"babel-eslint": "^10.1.0",
"buffer": "^6.0.3",
"classnames": "^2.2.6",
"compass-mixins": "^0.12.12",
"dinero.js": "^1.7.0",
"electron-is-dev": "^2.0.0",
"electron-updater": "^6.3.0",
"fast-memoize": "^2.5.2",
"file-saver": "^2.0.2",
"fs": "npm:browserify-fs@^1.0.0",
"fun-animal-names": "^0.1.1",
"global": "^4.4.0",
"http": "npm:http-browserify@^1.7.0",
"https": "npm:https-browserify@^1.0.0",
"localforage": "^1.7.3",
"lodash.debounce": "^4.0.8",
"lodash.sortby": "^4.7.0",
"lodash.throttle": "^4.1.1",
"notistack": "^2.0.8",
"path": "npm:path-browserify@^1.0.1",
"process": "^0.11.10",
"prop-types": "^15.6.2",
"react": "^17.0.2",
"react-confetti": "^6.1.0",
"react-dom": "^17.0.2",
"react-file-reader-input": "^2.0.0",
"react-helmet": "^6.1.0",
"react-hotkeys": "^2.0.0",
"react-markdown": "^4.3.1",
"react-number-format": "^4.4.1",
"react-router-dom": "^5.2.0",
"react-use": "^17.4.0",
"react-zoom-pan-pinch": "^1.6.1",
"redis": "^3.0.2",
"seedrandom": "^3.0.5",
"shifty": "^3.0.1",
"stream": "npm:stream-browserify@^3.0.0",
"trystero": "^0.20.0",
"typeface-francois-one": "0.0.71",
"typeface-public-sans": "^1.1.4",
"url": "^0.11.0",
"uuid": "^3.4.0",
"zlib": "npm:browserify-zlib@^0.2.0"
},
"build": {
"appId": "life.farmhand.game",
"productName": "Farmhand",
"extraMetadata": {
"name": "Farmhand",
"main": "dist/electron.js"
},
"files": [
"dist/**/*",
"node_modules/**/*"
],
"directories": {
"buildResources": "public",
"output": "dist/native"
},
"mac": {
"target": {
"target": "dmg",
"arch": "universal"
},
"mergeASARs": false,
"icon": "./public/app-icons/Icon-512x512.png"
},
"win": {
"target": "nsis",
"icon": "./public/app-icons/Icon-512x512.png"
},
"linux": {
"target": [
{
"target": "AppImage"
}
],
"category": "Game",
"icon": "./public/app-icons/Icon-512x512.png"
},
"publish": {
"provider": "github",
"owner": "jeremyckahn",
"repo": "farmhand",
"releaseType": "release"
}
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged && npm run lint && if git-branch-is develop; then npm test -- --run; fi"
}
},
"files": [
"src",
"build",
"public"
],
"craGenerate": {
"cssExtension": "sass",
"type": "functional"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
]
}