-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
54 lines (54 loc) · 2.43 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
{
"name": "keep-texts-in-tabs",
"version": "1.3.0",
"description": "Keep texts in Home Assistant dashboards tabs when icons are added to them",
"main": "keep-texts-in-tabs.js",
"repository": "[email protected]:elchininet/keep-texts-in-tabs.git",
"author": "ElChiniNet",
"license": "Apache-2.0",
"private": false,
"scripts": {
"build": "pnpm clean && rollup --config rollup.config.js --bundleConfigAsCjs",
"clean": "rm -rf dist || true",
"test:lint": "eslint \"src/**/*.{js,ts}\" \"tests/**/*.ts\"",
"test:clean": "rm -rf dist .nyc_output coverage || true",
"test:all": "pnpm test:ts && pnpm test:lint && pnpm test:ci",
"test:ci": "pnpm test:clean && pnpm demo && pnpm start:playwright && pnpm stop:ha",
"test:run": "playwright test",
"test:open": "playwright test --ui",
"test:ts": "tsc --noEmit",
"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",
"reset:ha": "git add .hass/config/.HA_VERSION && git checkout .hass/config",
"demo": "pnpm build && pnpm start:ha",
"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\"",
"coverage:report": "nyc report --reporter=lcov --reporter=text-summary",
"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.49.1",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.0",
"@rollup/plugin-terser": "^0.4.4",
"@stylistic/eslint-plugin-js": "^2.12.1",
"@types/node": "^22.10.2",
"eslint": "^9.17.0",
"globals": "^15.14.0",
"nyc": "^17.1.0",
"playwright-test-coverage": "^1.2.12",
"rollup": "^4.29.1",
"rollup-plugin-istanbul": "^5.0.0",
"rollup-plugin-ts": "^3.4.5",
"tslib": "^2.8.1",
"typescript": "^5.7.2",
"typescript-eslint": "^8.18.2"
},
"dependencies": {
"home-assistant-query-selector": "^4.3.0",
"home-assistant-styles-manager": "^3.1.0"
}
}