-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
package.json
58 lines (58 loc) · 2.94 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
{
"name": "kiosk-mode",
"version": "6.4.0",
"description": "Hides the Home Assistant header and/or sidebar",
"main": "kiosk-mode.js",
"repository": "[email protected]:NemesisRE/kiosk-mode.git",
"author": "Steven \"NemesisRE\" Koeberich <[email protected]>",
"license": "MIT",
"scripts": {
"build": "rollup --config rollup.config.js --bundleConfigAsCjs",
"lint": "eslint \"src/**/*.{js,ts}\" \"tests/**/*.ts\"",
"lint:fix": "pnpm lint --fix",
"test:ts": "tsc --noEmit",
"test:tag": "pnpm reset:ha && pnpm demo && pnpm tag:playwright && pnpm stop:ha",
"test:clean": "rm -rf dist .nyc_output coverage || 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 \"npx playwright test\"",
"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 \"npx playwright test --grep @testing\"",
"test:open": "playwright test --ui",
"test:update": "playwright test --update-snapshots",
"test:ci": "pnpm test:clean && pnpm demo && pnpm start:playwright && pnpm stop:ha",
"test:all": "pnpm lint && pnpm test:ts && pnpm test:ci",
"coverage:report": "nyc report --reporter=lcov --reporter=text-summary",
"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)}",
"start:ha:win": "docker run --rm -d -p8123:8123 --shm-size=512m -v %cd%/.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",
"reset:ha": "git add .hass/config/.HA_VERSION && git checkout .hass/config",
"demo": "pnpm build && pnpm start:ha",
"demo:win": "pnpm build && pnpm start:ha:win",
"prepare": "pnpm build",
"prepublishOnly": "pnpm test:all",
"version": "git add .",
"postversion": "git push && git push --tags"
},
"dependencies": {
"get-promisable-result": "^1.0.1",
"home-assistant-query-selector": "4.3.0",
"home-assistant-styles-manager": "3.1.0"
},
"devDependencies": {
"@playwright/test": "1.49.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-terser": "^0.4.4",
"@types/node": "^22.10.1",
"@types/sinon": "^17.0.3",
"eslint": "9.16.0",
"globals": "^15.12.0",
"nyc": "^17.1.0",
"playwright-test-coverage": "^1.2.12",
"rollup": "^4.28.0",
"rollup-plugin-istanbul": "^5.0.0",
"rollup-plugin-ts": "^3.4.5",
"sinon": "^19.0.2",
"tslib": "^2.8.1",
"typescript": "^5.7.2",
"typescript-eslint": "^8.16.0"
}
}