Skip to content

Commit

Permalink
Update HA FE to 20231030.2 (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
farmio authored Nov 20, 2023
1 parent 5954f2b commit a9e0d4a
Show file tree
Hide file tree
Showing 8 changed files with 1,997 additions and 1,761 deletions.
2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ plugins:
- path: homeassistant-frontend/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"

yarnPath: homeassistant-frontend/.yarn/releases/yarn-3.6.1.cjs
yarnPath: homeassistant-frontend/.yarn/releases/yarn-3.6.4.cjs
3 changes: 2 additions & 1 deletion build-scripts/bundle.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ module.exports.babelOptions = ({ latestBuild }) => ({
"@babel/preset-env",
{
useBuiltIns: latestBuild ? false : "entry",
corejs: latestBuild ? false : { version: "3.31", proposals: true },
corejs: latestBuild ? false : { version: "3.33", proposals: true },
bugfixes: true,
shippedProposals: true,
},
],
"@babel/preset-typescript",
Expand Down
9 changes: 5 additions & 4 deletions build-scripts/gulp/compress.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import paths from "../paths.cjs";

const zopfliOptions = { threshold: 150 };

gulp.task("compress-knx", () =>
const compressDist = (rootDir) =>
gulp
.src(path.resolve(paths.knx_output_root, "**/*.js"))
.src([`${rootDir}/**/*.{js,json,css,svg}`])
.pipe(zopfli(zopfliOptions))
.pipe(gulp.dest(paths.knx_output_root))
);
.pipe(gulp.dest(rootDir));

gulp.task("compress-knx", () => compressDist(paths.knx_output_root));
14 changes: 13 additions & 1 deletion build-scripts/webpack.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const webpack = require("webpack");
const { existsSync } = require("fs");
const path = require("path");
const webpack = require("webpack");
const { StatsWriterPlugin } = require("webpack-stats-plugin");
const filterStats = require("@bundle-stats/plugin-webpack-filter").default;
const TerserPlugin = require("terser-webpack-plugin");
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
const { WebpackManifestPlugin } = require("webpack-manifest-plugin");
Expand Down Expand Up @@ -165,11 +168,14 @@ const createWebpackConfig = ({
"lit/directives/guard$": "lit/directives/guard.js",
"lit/directives/cache$": "lit/directives/cache.js",
"lit/directives/repeat$": "lit/directives/repeat.js",
"lit/directives/live$": "lit/directives/live.js",
"lit/polyfill-support$": "lit/polyfill-support.js",
"@lit-labs/virtualizer/layouts/grid":
"@lit-labs/virtualizer/layouts/grid.js",
"@lit-labs/virtualizer/polyfills/resize-observer-polyfill/ResizeObserver":
"@lit-labs/virtualizer/polyfills/resize-observer-polyfill/ResizeObserver.js",
"@lit-labs/observers/resize-controller":
"@lit-labs/observers/resize-controller.js",
},
plugins: [new TsconfigPathsPlugin({
configFile: 'tsconfig.json',
Expand All @@ -186,6 +192,12 @@ const createWebpackConfig = ({
},
chunkFilename:
isProdBuild && !isStatsBuild ? "[chunkhash:8].js" : "[id].chunk.js",
assetModuleFilename:
isProdBuild && !isStatsBuild ? "[id]-[contenthash][ext]" : "[id][ext]",
crossOriginLoading: "use-credentials",
hashFunction: "xxhash64",
hashDigest: "base64url",
hashDigestLength: 11, // full length of 64 bit base64url
path: outputPath,
publicPath,
// To silence warning in worker plugin
Expand Down
2 changes: 1 addition & 1 deletion homeassistant-frontend
Loading

0 comments on commit a9e0d4a

Please sign in to comment.