-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
62 lines (62 loc) · 2.24 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
{
"name": "xssnake",
"description": "Online multiplayer Snake where the winner of a game is allowed to execute JavaScript in the browser of other players.",
"keywords": [
"xssnake",
"snake",
"multiplayer",
"game"
],
"homepage": "https://github.com/blaise-io/xssnake",
"author": "Blaise Kal <[email protected]>",
"license": "MIT",
"version": "0.0.1-alpha",
"repository": {
"type": "git",
"url": "https://github.com/blaise-io/xssnake.git"
},
"dependencies": {
"nano-server": "^0.5.4",
"pngjs": "^6.0.0",
"ws": "^7.5.0"
},
"devDependencies": {
"@types/node": "14.14.37",
"@types/pngjs": "^6.0.0",
"@types/tape": "^4.13.0",
"@types/webpack": "5.28.0",
"@types/ws": "7.4.1",
"@typescript-eslint/eslint-plugin": "4.20.0",
"@typescript-eslint/parser": "4.20.0",
"css-loader": "^5.2.2",
"eslint": "7.23.0",
"eslint-plugin-unused-imports": "1.1.1",
"html-webpack-plugin": "5.3.1",
"mini-css-extract-plugin": "^1.5.0",
"prettier": "2.2.1",
"style-loader": "^2.0.0",
"supervisor": "^0.12.0",
"tap-spec": "^5.0.0",
"tape": "^5.2.2",
"ts-loader": "8.1.0",
"ts-node": "^9.1.1",
"typescript": "^4.2.4",
"webpack": "5.33.2",
"webpack-cli": "4.6.0"
},
"engines": {
"node": ">= 12"
},
"scripts": {
"client": "webpack --mode development --watch --config src/client/webpack.config.ts",
"client.browser": "(nano-server 8002 dist &); open http://127.0.0.1:8002",
"client.production": "webpack --mode production --config src/client/webpack.config.ts",
"server": "webpack --mode development --watch --config src/server/webpack.config.ts",
"server.production": "webpack --mode production --config src/server/webpack.config.ts",
"server.start": "node dist/server.js --enable-source-maps --throw-deprecation",
"server.restart": "supervisor --watch dist/server.js -- dist/server.js --enable-source-maps --throw-deprecation",
"all": "npm run client & npm run server & npm run client.browser & npm run server.restart",
"lint": "eslint . --fix --format codeframe --ext .ts; prettier --list-different --write '**/*.ts' --loglevel warn",
"test": "npx ts-node --files $(which tape) 'src/tests/**/*.test.ts' | tap-spec"
}
}