-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpackage.json
More file actions
42 lines (42 loc) · 1.89 KB
/
package.json
File metadata and controls
42 lines (42 loc) · 1.89 KB
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
{
"name": "uix",
"private": true,
"version": "7.3.0",
"description": "UIX - UI eXtension for Home Assistant",
"scripts": {
"build": "rollup -c",
"update-manifest-version": "node -e \"const pkg = require('./package.json'); const manifest = require('./custom_components/uix/manifest.json'); manifest.version = pkg.version; require('fs').writeFileSync('./custom_components/uix/manifest.json', JSON.stringify(manifest, null, 2) + '\\n');\"",
"compress-build-artifacts": "node -e \"const fs = require('fs'); const path = require('path'); const zlib = require('zlib'); const buildDir = path.join(__dirname, 'custom_components/uix'); fs.readdirSync(buildDir).forEach(file => { if (file.endsWith('.js')) { const filePath = path.join(buildDir, file); const fileContents = fs.readFileSync(filePath); const compressed = zlib.gzipSync(fileContents); fs.writeFileSync(filePath + '.gz', compressed); } });\"",
"prebuild": "npm run update-manifest-version",
"postbuild": "npm run compress-build-artifacts",
"watch": "rollup -c --watch"
},
"keywords": [],
"author": "Darryn Capes-Davis",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.29.0",
"@babel/preset-env": "^7.29.5",
"@rollup/plugin-babel": "^7.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-terser": "^1.0.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/exec": "^7.1.0",
"@semantic-release/git": "^10.0.1",
"conventional-changelog-conventionalcommits": "^9.3.1",
"rollup": "^4.60.3",
"rollup-plugin-typescript2": "^0.37.0",
"semantic-release": "^25.0.3",
"typescript": "^6.0.3"
},
"dependencies": {
"@watchable/unpromise": "^1.0.2",
"color-name": "^2.1.0",
"compare-versions": "^6.1.1",
"lit": "^3.3.2",
"memoize-one": "^6.0.0",
"parse-duration": "^2.1.6",
"tslib": "^2.8.1"
}
}