forked from boardgameio/boardgame.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
200 lines (200 loc) · 6.14 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
{
"name": "boardgame.io",
"version": "0.35.1",
"description": "library for turn-based games",
"repository": "https://github.com/nicolodavis/boardgame.io",
"scripts": {
"start": "node scripts/install-web.js && npx concurrently npm:dev:server npm:dev:client",
"dev": "node scripts/install-web.js && npx concurrently npm:build:watch npm:dev:server npm:dev:client",
"dev:client": "cd examples && cd react-web && npm start",
"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 --presets @babel/preset-env benchmark/index.js",
"docs": "docsify serve docs",
"examples": "npm run start",
"pretest": "npm run lint",
"test": "cross-env NODE_ENV=test jest --no-cache",
"test:watch": "cross-env NODE_ENV=test jest --watch",
"test:coverage": "cross-env NODE_ENV=test jest --no-cache --coverage --collectCoverageFrom=src/** --collectCoverageFrom=!src/**/random.alea.js --collectCoverageFrom=!src/client/debug/** --forceExit",
"test:coveralls": "cat coverage/lcov.info | node node_modules/.bin/coveralls",
"test:integration": "bash ./scripts/integration.sh",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"prepublishOnly": "npm run clean",
"prepack": "npm run build && node scripts/proxy-dirs.js",
"postpack": "npm run clean",
"prettier": "prettier --write \"{examples,src,benchmark}/**/*.{js,css,md}\"",
"changelog": "bash ./scripts/changelog.sh",
"clean": "node ./scripts/clean.js"
},
"sideEffects": false,
"main": "dist/boardgameio.js",
"unpkg": "dist/boardgameio.min.js",
"module": "dist/boardgameio.es.js",
"files": [
"dist/boardgameio.js",
"dist/boardgameio.min.js",
"dist/boardgameio.es.js",
"dist/server.js",
"dist/esm",
"dist/cjs",
"client",
"core",
"debug",
"react",
"react-native",
"server.js",
"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.2.3",
"@babel/core": "^7.5.4",
"@babel/node": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.5.0",
"@babel/plugin-transform-modules-commonjs": "^7.2.0",
"@babel/preset-env": "^7.5.4",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.3.3",
"@firebase/app": "^0.4.16",
"@testing-library/jest-dom": "^4.1.2",
"@testing-library/svelte": "^1.9.0",
"@types/jest": "^24.0.0",
"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",
"concurrently": "^4.1.0",
"coveralls": "^3.0.0",
"cross-env": "^5.1.1",
"css-loader": "^3.1.0",
"docsify-cli": "^4.3.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",
"firebase": "^6.6.1",
"firebase-admin": "^8.5.0",
"firebase-mock": "^2.2.10",
"graceful-fs": "https://github.com/mekwall/node-graceful-fs.git#patch-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",
"mongo-mock": "^3.3.2",
"mongodb": "^3.0.3",
"node-persist": "^3.0.4",
"nodemon": "^1.18.9",
"prettier": "^1.10.2",
"raf": "^3.4.0",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-router-dom": "^4.2.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": "^4.0.2",
"rollup-plugin-typescript2": "^0.22.0",
"shelljs": "^0.7.8",
"style-loader": "^0.18.2",
"superagent": "^3.8.3",
"supertest": "^3.1.0",
"svelte": "^3.12.1",
"svelte-icons": "^1.1.0",
"ts-jest": "^24.0.2",
"ts-transformer-imports": "^0.4.3",
"ttypescript": "^1.5.7",
"typescript": "^3.5.3"
},
"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",
"uuid": "3.2.1"
},
"jest": {
"preset": "ts-jest/presets/js-with-babel",
"moduleNameMapper": {
"\\.(css)$": "identity-obj-proxy",
"\\.(svg)$": "<rootDir>/.empty_module.js"
},
"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 lint && npm run test:coverage"
}
}
}