-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
85 lines (85 loc) · 2.93 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
{
"name": "docker-standalone",
"version": "0.1.0",
"homepage": "https://docs.digital-alchemy.app/",
"description": "A docker-deployable standalone starter-kit for HomeAssistant automations using TypeScript",
"license": "MIT",
"type": "module",
"scripts": {
"dev": "bun --hot --watch src/main.ts",
"play": "docker-compose -f playground/docker-compose.yml up",
"endplay": "docker-compose -f playground/docker-compose.yml down",
"type-writer": "type-writer",
"build": "yarn build:dist && yarn build:docker",
"build:dist": "bun build --compile --target=bun-linux-x64-modern src/main.ts --outfile dist/server",
"build:docker": "docker build . -t automation-prod",
"upgrade": "yarn up \"@digital-alchemy/*\"",
"start": "docker run --env-file .env automation-prod",
"test": "vitest",
"coverage": "vitest --coverage",
"lint": "eslint src/ --ext .js,.ts,.tsx,.mts --max-warnings 0",
"format": "prettier --write .",
"fix": "yarn format && yarn lint --fix",
"typecheck": "tsc --noEmit",
"prepare": "husky install || true"
},
"lint-staged": {
"*.@(sh|bash|zsh|fish)": [
"shellcheck",
"git update-index --chmod=+x"
],
"*.@(ts|tsx|mts)": "bash -c 'bun tsc --skipLibCheck --noEmit'",
"*.@(ts|tsx|mts|js|jsx|mjs|cjs)": [
"eslint --max-warnings 0",
"vitest related --run"
],
"*.@(ts|tsx|mts|js|jsx|mjs|cjs|json|jsonc|json5|md|mdx|yaml|yml)": "prettier --write"
},
"dependencies": {
"@digital-alchemy/automation": "^24.7.1",
"@digital-alchemy/core": "^24.7.2",
"@digital-alchemy/fastify-extension": "^24.7.1",
"@digital-alchemy/hass": "^24.8.1",
"@digital-alchemy/mqtt-extension": "^24.7.1",
"@digital-alchemy/synapse": "^24.8.1",
"@digital-alchemy/type-writer": "^24.7.2",
"dayjs": "^1.11.12"
},
"devDependencies": {
"@cspell/eslint-plugin": "^8.13.2",
"@types/async": "^3.2.24",
"@types/bun": "^1.1.6",
"@types/jest": "^29.5.12",
"@types/node": "^22.2.0",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"@vitest/coverage-v8": "^2.0.5",
"bun": "^1.1.22",
"cross-env": "^7.0.3",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsonc": "^2.16.0",
"eslint-plugin-no-unsanitized": "^4.0.2",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-security": "^3.0.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-sonarjs": "^0.25.1",
"eslint-plugin-sort-keys-fix": "^1.1.2",
"eslint-plugin-unicorn": "^52.0.0",
"eslint-plugin-vitest": "^0.5.4",
"husky": "^8.0.3",
"lint-staged": "^15.2.8",
"prettier": "^3.3.3",
"shellcheck": "^3.0.0",
"tsx": "^4.17.0",
"type-fest": "^4.24.0",
"typescript": "^5.4.5",
"vitest": "^2.0.5"
},
"volta": {
"node": "22.6.0",
"yarn": "4.4.0"
},
"packageManager": "[email protected]"
}