forked from boardgameio/boardgame.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
217 lines (217 loc) · 6.43 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
{
"name": "boardgame.io",
"version": "0.39.15",
"description": "library for turn-based games",
"repository": "https://github.com/boardgameio/boardgame.io",
"scripts": {
"prestart": "run-p examples:install build",
"start": "run-p dev:server dev:client",
"predev": "npm run examples:install",
"dev": "run-p build:watch dev:server dev:client",
"dev:client": "node scripts/dev-client.js",
"dev:server": "cross-env NODE_ENV=development nodemon -w src -w examples -e js,ts --exec babel-node --extensions \".ts,.js\" --ignore \"src/**/*.test.ts\" --presets @babel/preset-env examples/react-web/server.js",
"build": "cross-env BABEL_ENV=rollup rollup --config rollup.config.js",
"build:watch": "cross-env BABEL_ENV=rollup rollup -w --config rollup.config.js",
"benchmark": "babel-node --extensions .ts,.js --presets @babel/preset-env,@babel/preset-typescript benchmark/index.js",
"docs": "docsify serve docs",
"examples": "npm run start",
"examples:install": "node scripts/install-examples.js",
"pretest": "npm run lint",
"test": "cross-env NODE_ENV=test jest --no-cache",
"test:watch": "cross-env NODE_ENV=test jest --watch",
"test:coverage": "npm test -- --coverage --collectCoverageFrom=\"src/**\" --forceExit",
"test:coveralls": "coveralls < coverage/lcov.info",
"test:integration": "node ./scripts/integration.js",
"ts": "tsc --noEmit",
"ts:watch": "tsc --noEmit --watch",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"prepublishOnly": "npm run clean",
"proxydirs": "node scripts/proxy-dirs.js",
"prepack": "run-s build proxydirs",
"postpack": "npm run clean",
"prettier": "prettier --write \"{examples,src,benchmark}/**/*.{ts,tsx,js,jsx,css,md}\"",
"changelog": "node ./scripts/changelog.js",
"clean": "node ./scripts/clean.js"
},
"sideEffects": false,
"main": "dist/boardgameio.js",
"unpkg": "dist/boardgameio.min.js",
"module": "dist/boardgameio.es.js",
"types": "dist/types/src/types.d.ts",
"files": [
"src",
"dist/boardgameio.js",
"dist/boardgameio.min.js",
"dist/boardgameio.es.js",
"dist/esm",
"dist/cjs",
"dist/types",
"client",
"core",
"debug",
"react",
"react-native",
"server",
"ai",
"plugins",
"master",
"multiplayer",
"internal"
],
"keywords": [
"board games",
"card games",
"tabletop games",
"game engine"
],
"engines": {
"node": ">=10.0",
"npm": ">=6.0"
},
"author": "[email protected]",
"license": "MIT",
"devDependencies": {
"@babel/cli": "^7.10.3",
"@babel/core": "^7.10.3",
"@babel/node": "^7.10.3",
"@babel/plugin-proposal-class-properties": "^7.10.1",
"@babel/plugin-transform-modules-commonjs": "^7.10.1",
"@babel/preset-env": "^7.10.3",
"@babel/preset-react": "^7.10.1",
"@babel/preset-typescript": "^7.10.1",
"@testing-library/jest-dom": "^4.1.2",
"@testing-library/svelte": "^1.9.0",
"@types/enzyme": "^3.10.5",
"@types/jest": "^24.0.0",
"@types/koa": "^2.11.3",
"@types/koa-router": "^7.4.0",
"@types/koa__cors": "^3.0.1",
"@types/react": "^16.9.36",
"@types/react-dom": "^16.9.8",
"@types/shortid": "0.0.29",
"@types/socket.io": "^2.1.4",
"ajv": "^6.6.2",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^8.0.0",
"babel-loader": "^8.0.5",
"babel-plugin-module-resolver": "^3.0.0",
"benchmark": "^2.1.4",
"bundlewatch": "^0.2.5",
"coveralls": "^3.0.0",
"cross-env": "^5.1.1",
"css-loader": "^3.1.0",
"docsify-cli": "^4.4.0",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.14.0",
"eslint": "^5.6.0",
"eslint-config-prettier": "^3.1.0",
"eslint-plugin-jest": "^21.22.1",
"eslint-plugin-prettier": "^2.6.2",
"eslint-plugin-react": "^7.11.1",
"eslint-plugin-unicorn": "^6.0.1",
"husky": "^1.3.1",
"identity-obj-proxy": "^3.0.0",
"jest": "^24.0.0",
"jest-transform-svelte": "^2.1.0",
"lint-staged": "^8.1.0",
"node-persist": "^3.0.4",
"nodemon": "^1.18.9",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.1",
"raf": "^3.4.0",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-router-dom": "^5.1.2",
"react-svg-loader": "^3.0.3",
"react-test-renderer": "^16.0.0",
"rollup": "^1.0.2",
"rollup-plugin-babel": "^4.2.0",
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-filesize": "^6.0.0",
"rollup-plugin-node-builtins": "^2.1.2",
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-replace": "^2.1.0",
"rollup-plugin-svelte": "^5.1.0",
"rollup-plugin-terser": "^5.3.0",
"rollup-plugin-typescript2": "^0.22.0",
"shelljs": "^0.7.8",
"style-loader": "^0.18.2",
"superagent": "^3.8.3",
"supertest": "^3.1.0",
"svelte-icons": "^1.1.0",
"tempy": "^0.5.0",
"ts-jest": "^24.0.2",
"ts-transformer-imports": "^0.4.3",
"ttypescript": "^1.5.7",
"typescript": "^3.8.2"
},
"dependencies": {
"@koa/cors": "^2.2.1",
"flatted": "^0.2.3",
"immer": "^1.8.0",
"koa": "^2.7.0",
"koa-body": "^4.1.0",
"koa-router": "^7.2.1",
"koa-socket-2": "^1.0.17",
"lru-cache": "^4.1.1",
"prop-types": "^15.5.10",
"react-cookies": "^0.1.0",
"redux": "^4.0.0",
"shortid": "^2.2.14",
"socket.io": "^2.1.1",
"svelte": "^3.24.0",
"ts-toolbelt": "^6.3.6",
"uuid": "3.2.1"
},
"jest": {
"preset": "ts-jest/presets/js-with-babel",
"moduleNameMapper": {
"\\.(css)$": "identity-obj-proxy",
"\\.(svg)$": "<rootDir>/.empty_module.js"
},
"coveragePathIgnorePatterns": [
"/node_modules/",
"src/.*/random.alea.js",
"src/client/debug/.*",
"src/types.ts"
],
"setupFiles": [
"raf/polyfill"
],
"setupFilesAfterEnv": [
"@testing-library/jest-dom/extend-expect"
],
"transform": {
"^.+\\.svelte$": "jest-transform-svelte"
},
"transformIgnorePatterns": [
"node_modules/(?!(boardgame.io|flatted|svelte-icons)/)"
],
"testPathIgnorePatterns": [
"examples/",
"integration/",
"node_modules/",
".npm/"
]
},
"bundlewatch": {
"files": [
{
"path": "dist/*.js",
"maxSize": "100kB"
},
{
"path": "dist/esm/*.js",
"maxSize": "200kB",
"compression": "none"
}
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm run test:coverage"
}
}
}