-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
63 lines (63 loc) · 3.05 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
{
"name": "custom-sidebar",
"version": "6.8.0",
"description": "Custom HACS plugin that allows you to rearrange, hide, and add menu items to Home Assistant's sidebar",
"main": "dist/custom-sidebar.js",
"repository": "git@github.com:elchininet/custom-sidebar.git",
"author": "ElChiniNet",
"license": "Apache-2.0",
"private": false,
"scripts": {
"build": "rollup --config rollup.config.js --bundleConfigAsCjs",
"lint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\"",
"lint:fix": "pnpm lint --fix",
"test:clean": "rm -rf dist .nyc_output coverage || true",
"test:ts": "tsc --noEmit",
"test:run": "dotenv playwright test",
"test:run:tag": "dotenv -- playwright test --grep @testing",
"test:open": "playwright test --ui",
"test:ci": "pnpm test:clean && pnpm demo && pnpm start:playwright && pnpm stop:ha",
"test:tag": "pnpm reset:ha && pnpm test:clean && pnpm demo && pnpm tag:playwright && pnpm stop:ha",
"test:all": "pnpm lint && pnpm test:ts && pnpm test:ci",
"demo": "pnpm build && pnpm start:ha",
"start:ha": "docker run --rm -d -p8123:8123 --shm-size=512m -v ${PWD}/.hass/config:/config homeassistant/home-assistant:${TAG:-$(cat .hass/config/.HA_VERSION)}",
"stop:ha": "docker stop $(docker ps -a -q --filter ancestor=homeassistant/home-assistant:${TAG:-$(cat .hass/config/.HA_VERSION)}) || true",
"start:playwright": "docker run --rm --network host --add-host host.docker.internal:host-gateway -v $(pwd):/$(pwd)/ -w $(pwd) -i mcr.microsoft.com/playwright:v$npm_package_devDependencies__playwright_test-jammy sh -c \"yarn test:run && exit\"",
"tag:playwright": "docker run --rm --network host --add-host host.docker.internal:host-gateway -v $(pwd):/$(pwd)/ -w $(pwd) -i mcr.microsoft.com/playwright:v$npm_package_devDependencies__playwright_test-jammy sh -c \"yarn test:run:tag && exit\"",
"coverage:report": "nyc report --reporter=lcov --reporter=text-summary",
"reset:ha": "git add .hass/config/.HA_VERSION && git checkout .hass/config",
"preinstall": "npx -y only-allow pnpm",
"prepare": "pnpm build",
"prepublishOnly": "pnpm test:all",
"version": "git add .",
"postversion": "git push && git push --tags"
},
"devDependencies": {
"@playwright/test": "1.48.2",
"@rollup/plugin-alias": "^5.1.1",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-replace": "^6.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.1",
"@types/js-yaml": "^4.0.9",
"@types/node": "22.9.0",
"dotenv-cli": "^7.4.2",
"eslint": "^9.14.0",
"globals": "^15.12.0",
"nyc": "^17.1.0",
"playwright-test-coverage": "^1.2.12",
"rollup": "^4.25.0",
"rollup-plugin-istanbul": "^5.0.0",
"tslib": "^2.8.1",
"typescript": "^5.6.3",
"typescript-eslint": "^8.13.0"
},
"dependencies": {
"get-promisable-result": "^1.0.1",
"home-assistant-javascript-templates": "^5.4.2",
"home-assistant-query-selector": "^4.3.0",
"home-assistant-styles-manager": "^3.0.0",
"js-yaml": "^4.1.0"
}
}