-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
70 lines (70 loc) · 2.17 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
{
"name": "snake-game-engine",
"version": "1.0.0",
"author": "Luca Brognara",
"license": "ISC",
"description": "Game engine to code snake games",
"main": "./package/main.js",
"types": "./package/typings.d.ts",
"files": [
"package"
],
"scripts": {
"start": "webpack serve",
"watch": "webpack --watch",
"build": "webpack",
"build:prod": "webpack --config webpack.prod.js",
"build:prod:patch": "pnpm run _bump-patch && pnpm run build:prod",
"build:prod:minor": "pnpm run _bump-minor && pnpm run build:prod",
"build:prod:major": "pnpm run _bump-major && pnpm run build:prod",
"build:npm": "pnpm run _clean-package && pnpm run _tsc && npm run _copy-definition-types",
"publish:npm:patch": "pnpm run _bump-patch && pnpm run build:pnpm pnpm login && pnpm publish",
"publish:npm:minor": "pnpm run _bump-minor && pnpm run build:pnpm pnpm login && pnpm publish",
"publish:npm:major": "pnpm run _bump-major && pnpm run build:pnpm pnpm login && pnpm publish",
"clean": "rm -rf node_modules package-lock.json && pnpm install",
"update": "rm -f package-lock.json && pnpm update",
"version-and-publish": "pnpm version patch && pnpm publish",
"_tsc": "tsc",
"_bump-patch": "pnpm version patch",
"_bump-minor": "pnpm version minor",
"_bump-major": "pnpm version major",
"_clean-package": "rm -rf package && mkdir package",
"_copy-definition-types": "./scripts/copyDefinitionTypes.js"
},
"husky": {
"hooks": {
"pre-commit": "pnpm run lint"
}
},
"keywords": [
"game",
"game-development",
"snake",
"snake-game",
"game-engine",
"Typescript",
"2d"
],
"devDependencies": {
"@types/estree": "^0.0.51",
"@types/webpack": "^5.28.5",
"clean-webpack-plugin": "^3.0.0",
"css-loader": "^5.2.7",
"fs-extra": "^9.1.0",
"html-loader": "^1.3.2",
"html-webpack-inline-source-plugin": "0.0.10",
"html-webpack-plugin": "^4.5.2",
"style-loader": "^2.0.0",
"terser-webpack-plugin": "^4.2.3",
"ts-loader": "^9.5.1",
"tsconfig-paths-webpack-plugin": "^3.5.2",
"tslib": "^2.6.2",
"typescript": "^4.9.5",
"webpack": "^5.91.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.15.2"
},
"lint-staged": {
"*.{ts,js}": "eslint --cache --fix"
}
}