-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
43 lines (43 loc) · 2.18 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
{
"name": "wibbles",
"version": "1.0.0",
"description": "Wibbles (Nibbles on the Web) is a Snake variant that takes the concept of \"Der Wurm\"/\"The Worm\" and ports it to the web.",
"main": "src/index.ts",
"scripts": {
"test": "jest",
"generate-schema": "npm run generate-schema:tileset && npm run generate-schema:level && npm run generate-schema:spriteset && npm run generate-schema:game",
"generate-schema:tileset": "ts-json-schema-generator --path ./src/schema/tileset.ts --type JsonTileset --out schema/tileset.json -f ./tsconfig.json",
"generate-schema:level": "ts-json-schema-generator --path ./src/schema/level.ts --type JsonLevel --out schema/level.json -f ./tsconfig.json",
"generate-schema:spriteset": "ts-json-schema-generator --path ./src/schema/spriteset.ts --type JsonSpriteset --out schema/spriteset.json -f ./tsconfig.json",
"generate-schema:game": "ts-json-schema-generator --path ./src/schema/game.ts --type JsonGame --out schema/game.json -f ./tsconfig.json",
"build": "npm run build:ts && npm run download-font && npm run copy-static",
"build:ts": "tsc",
"copy-static": "npm run copy-static:data && npm run copy-static:html && npm run copy-static:css",
"copy-static:html": "copyfiles --verbose ./*.html ./dist/",
"copy-static:css": "copyfiles --verbose ./*.css ./dist/",
"copy-static:data": "copyfiles --verbose \"./data/**/*\" ./dist/",
"serve": "http-server -c-1 ./dist/",
"watch": "chokidar \"**/*\" \"!dist/**/*\" -c \"npm run build\"",
"lint": "eslint .",
"download-font": "goog-webfont-dl --woff2 --destination dist/fonts/ --subset latin --out dist/font.css --prefix fonts/ VT323"
},
"author": "[email protected]",
"license": "AGPL-3.0-or-later",
"devDependencies": {
"@types/jest": "^29.4.0",
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.49.0",
"copyfiles": "^2.4.1",
"eslint": "^8.32.0",
"eslint-plugin-jest": "^27.2.1",
"goog-webfont-dl": "^1.0.4",
"jest": "^29.4.1",
"ts-jest": "^29.0.5",
"ts-json-schema-generator": "^1.2.0",
"typescript": "^4.9.4"
},
"dependencies": {
"chokidar-cli": "^3.0.0",
"http-server": "^14.1.1"
}
}