generated from gtrabanco/nodecg-react-ts-start
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
258 lines (258 loc) · 7.54 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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
{
"name": "handball-liveshow-spain",
"private": true,
"version": "2.2.1",
"description": "NodeCG for Handball matches Live streamings in Spain (valid for other countries but could have calls to spanish league api)",
"homepage": "https://github.com/BalonmanoVetusta/handball-liveshow-spain",
"author": "Gabriel Trabanco Llano <gtrabanco@users.noreply.github.com> (https://gabi.io)",
"repository": "https://github.com/BalonmanoVetusta/handball-liveshow-spain",
"files": [
"dashboard",
"graphics",
"extension.js",
"src",
"extension"
],
"scripts": {
"bundle:tbz2": "rm -f handball-liveshow-spain.tar.bz2 && npm run build:clean && npm run build && tar cvjf handball-liveshow-spain.tar.bz2 cfg dashboard extension graphics assets schemas package.json",
"pm:start": "pm2 restart ecosystem.config.js",
"prepm:dev": "./bin/create-local-docker-dev",
"pm:dev": "pm2 restart docker-dev-ecosystem.config.js --env development",
"dev:rs": "./bin/restart-local-docker-dev",
"pm:dev:stop": "pm2 stop docker-dev-ecosystem.config.js && ./bin/remove-local-docker-dev",
"pm:dev:delete": "pm2 delete docker-dev-ecosystem.config.js && ./bin/remove-local-docker-dev",
"pm:stop": "pm2 stop ecosystem.config.js",
"watch": "npm run watch:dashboard && npm run watch:graphics && npm run watch:extension",
"watch:dashboard": "parcel watch src/dashboard/*.html --dist-dir ./ --target dashboard",
"watch:graphics": "parcel watch src/graphics/*.html --dist-dir ./ --target graphics",
"watch:extension": "parcel watch --dist-dir ./ --target extension",
"prebuild": "npm run build:schemas",
"build": "npm run build:dashboard && npm run build:graphics && npm run build:extension",
"build:clean": "rm -rf .parcel-cache dashboard extension graphics",
"build:schemas": "rm -rf ./types/schemas/*.d.ts && cd schemas && json2ts -i '*.json' -o ../src/types/schemas/ && cd ..",
"build:dashboard": "parcel build src/dashboard/*.html --dist-dir ./ --target dashboard",
"build:graphics": "parcel build src/graphics/*.html --dist-dir ./ --target graphics",
"build:extension": "parcel build --no-content-hash --dist-dir ./ --target extension",
"lint": "eslint ./src",
"lint:fix": "eslint --fix ./src",
"lint:staged": "lint-staged",
"fmt": "prettier --write '**/*.{mjs,ts,tsx,js,jsx,}'",
"prepare": "husky install",
"replace-runtime": "npm run ./bin/postinstall.mjs",
"pm2": "pm2"
},
"targets": {
"default": {
"distDir": "../",
"publicUrl": "./",
"engines": {
"browsers": "last 2 Chrome versions, last 2 Firefox versions, last 2 Safari versions, last 2 edge versions"
},
"context": "browser",
"outputFormat": "esmodule"
},
"dashboard": {
"publicUrl": "./"
},
"graphics": {
"publicUrl": "./"
},
"extension": {
"publicUrl": "./",
"source": "./src/extension/index.ts",
"context": "node",
"outputFormat": "commonjs",
"engines": {
"browsers": "node >= 18",
"node": "=18"
}
}
},
"keywords": [
"template",
"react",
"nodecg-bundle"
],
"nodecg": {
"compatibleRange": ">=2.0.0",
"mount": [
{
"directory": "assets",
"endpoint": "assets"
}
],
"dashboardPanels": [
{
"name": "Other",
"title": "Other admin options & actions",
"file": "other.html",
"width": 6,
"height": "auto",
"headerColor": "#525F78",
"workspace": "3. Other",
"fullbleed": false,
"dialog": false
},
{
"name": "scoreboard",
"title": "Score Controls",
"file": "scoreboard.html",
"width": 2,
"height": "auto",
"headerColor": "#525F78",
"workspace": "2. Scoreboard",
"fullbleed": false,
"dialog": false
},
{
"name": "stopwatch",
"title": "Match Configuration & Time Control",
"file": "stopwatch.html",
"width": 4,
"headerColor": "#525F78",
"workspace": "2. Scoreboard",
"fullbleed": false,
"dialog": false
},
{
"name": "shields",
"title": "Shields Selector",
"file": "shieldsconfig.html",
"width": 2,
"height": "auto",
"headerColor": "#525F78",
"workspace": "2. Scoreboard",
"fullbleed": false,
"dialog": false
},
{
"name": "scene-switcher",
"title": "Scene Switcher",
"file": "scene-switcher.html",
"width": 2,
"height": "auto",
"headerColor": "#525F78",
"workspace": "1. Graphics: Scene Switcher",
"fullbleed": false,
"dialog": false
}
],
"graphics": [
{
"file": "live.html",
"width": 1920,
"height": 1080,
"singleInstance": false
}
],
"assetCategories": [
{
"name": "shields",
"title": "Team Shields",
"allowedTypes": [
"jpg",
"jpeg",
"gif",
"png",
"webp",
"svg"
]
},
{
"name": "banners",
"title": "Advertising Banners",
"allowedTypes": [
"jpg",
"jpeg",
"gif",
"png",
"webp",
"svg"
]
},
{
"name": "music",
"title": "Music",
"allowedTypes": [
"mp3",
"wav",
"ogg"
]
},
{
"name": "videos",
"title": "Videos",
"allowedTypes": [
"mp4",
"webm",
"ogg"
]
}
]
},
"license": "MIT",
"devDependencies": {
"@nodecg/types": "2.1.11",
"@parcel/config-default": "2.9.3",
"@parcel/transformer-svg-react": "2.9.3",
"@parcel/transformer-typescript-tsc": "2.9.3",
"@parcel/validator-typescript": "2.9.3",
"@types/express-serve-static-core": "4.17.37",
"@types/react": "18.2.22",
"@types/react-dom": "18.2.7",
"@types/styled-components": "5.1.28",
"@typescript-eslint/eslint-plugin": "6.7.3",
"@typescript-eslint/parser": "6.7.3",
"buffer": "6.0.3",
"eslint": "8.50.0",
"eslint-config-prettier": "9.0.0",
"eslint-import-resolver-typescript": "3.6.1",
"eslint-plugin-compat": "4.2.0",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-prettier": "5.0.0",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
"events": "3.3.0",
"husky": "8.0.3",
"json-schema-to-typescript": "13.1.1",
"lint-staged": "14.0.1",
"os-browserify": "0.3.0",
"parcel": "2.9.3",
"parcel-resolver-ts-base-url": "1.3.1",
"parcel-resolver-tspaths": "0.0.9",
"prettier": "3.0.3",
"process": "0.11.10",
"typescript": "5.2.2",
"util": "0.12.5",
"uuidv4": "6.2.13"
},
"dependencies": {
"@mdi/js": "7.2.96",
"@mdi/react": "1.6.1",
"core-js": "3.32.2",
"framer-motion": "10.16.4",
"nodecg": "2.1.11",
"pm2": "5.3.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"sharp": "0.32.6",
"styled-components": "6.0.8",
"uuid": "9.0.0",
"wouter": "2.11.0"
},
"optionalDependencies": {
"@parcel/watcher-linux-x64-glibc": "2.3.0",
"lightningcss-linux-x64-gnu": "^1.22.0"
},
"prettier": {
"singleQuote": false,
"printWidth": 120,
"semi": true,
"tabWidth": 2
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": "bun lint"
},
"browserslist": "> 1.5% and last 2 versions, not op_mini all and not ios_saf >= 0 and not and_chr >=0"
}