Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:home-assistant/frontend into improve…
Browse files Browse the repository at this point in the history
…-ci-speed
  • Loading branch information
wendevlin committed Nov 26, 2024
2 parents acbc9d3 + bd0bfc1 commit 7c0f4a9
Show file tree
Hide file tree
Showing 84 changed files with 2,916 additions and 1,947 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
release:
types:
- published
workflow_dispatch:

env:
PYTHON_VERSION: "3.12"
Expand Down
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"esbenp.prettier-vscode",
"runem.lit-plugin",
"github.vscode-pull-request-github",
"eamodio.gitlens"
"eamodio.gitlens",
"vitest.explorer"
]
}
584 changes: 292 additions & 292 deletions .yarn/releases/yarn-4.5.1.cjs → .yarn/releases/yarn-4.5.2.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.5.1.cjs
yarnPath: .yarn/releases/yarn-4.5.2.cjs
1 change: 0 additions & 1 deletion build-scripts/bundle.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ module.exports.babelOptions = ({
exclude: [
// \\ for Windows, / for Mac OS and Linux
/node_modules[\\/]core-js/,
/node_modules[\\/]webpack[\\/]buildin/,
],
sourceMaps: !isTestBuild,
overrides: [
Expand Down
19 changes: 15 additions & 4 deletions build-scripts/gulp/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import "./locale-data.js";
import "./service-worker.js";
import "./translations.js";
import "./wds.js";
import "./webpack.js";
import "./rspack.js";

gulp.task(
"develop-app",
Expand All @@ -26,7 +26,7 @@ gulp.task(
"build-locale-data"
),
"copy-static-app",
env.useWDS() ? "wds-watch-app" : "webpack-watch-app"
env.useWDS() ? "wds-watch-app" : "rspack-watch-app"
)
);

Expand All @@ -39,9 +39,20 @@ gulp.task(
"clean",
gulp.parallel("gen-icons-json", "build-translations", "build-locale-data"),
"copy-static-app",
"webpack-prod-app",
"rspack-prod-app",
gulp.parallel("gen-pages-app-prod", "gen-service-worker-app-prod"),
// Don't compress running tests
...(env.isTestBuild() ? [] : ["compress-app"])
...(env.isTestBuild() || env.isStatsBuild() ? [] : ["compress-app"])
)
);

gulp.task(
"analyze-app",
gulp.series(
async function setEnv() {
process.env.STATS = "1";
},
"clean",
"rspack-prod-app"
)
);
6 changes: 3 additions & 3 deletions build-scripts/gulp/cast.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "./entry-html.js";
import "./gather-static.js";
import "./service-worker.js";
import "./translations.js";
import "./webpack.js";
import "./rspack.js";

gulp.task(
"develop-cast",
Expand All @@ -17,7 +17,7 @@ gulp.task(
gulp.parallel("gen-icons-json", "build-translations", "build-locale-data"),
"copy-static-cast",
"gen-pages-cast-dev",
"webpack-dev-server-cast"
"rspack-dev-server-cast"
)
);

Expand All @@ -31,7 +31,7 @@ gulp.task(
"translations-enable-merge-backend",
gulp.parallel("gen-icons-json", "build-translations", "build-locale-data"),
"copy-static-cast",
"webpack-prod-cast",
"rspack-prod-cast",
"gen-pages-cast-prod"
)
);
17 changes: 14 additions & 3 deletions build-scripts/gulp/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "./gather-static.js";
import "./gen-icons-json.js";
import "./service-worker.js";
import "./translations.js";
import "./webpack.js";
import "./rspack.js";

gulp.task(
"develop-demo",
Expand All @@ -22,7 +22,7 @@ gulp.task(
"build-locale-data"
),
"copy-static-demo",
"webpack-dev-server-demo"
"rspack-dev-server-demo"
)
);

Expand All @@ -37,7 +37,18 @@ gulp.task(
"translations-enable-merge-backend",
gulp.parallel("gen-icons-json", "build-translations", "build-locale-data"),
"copy-static-demo",
"webpack-prod-demo",
"rspack-prod-demo",
"gen-pages-demo-prod"
)
);

gulp.task(
"analyze-demo",
gulp.series(
async function setEnv() {
process.env.STATS = "1";
},
"clean",
"rspack-prod-demo"
)
);
6 changes: 3 additions & 3 deletions build-scripts/gulp/gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import "./gather-static.js";
import "./gen-icons-json.js";
import "./service-worker.js";
import "./translations.js";
import "./webpack.js";
import "./rspack.js";

gulp.task("gather-gallery-pages", async function gatherPages() {
const pageDir = path.resolve(paths.gallery_dir, "src/pages");
Expand Down Expand Up @@ -156,7 +156,7 @@ gulp.task(
"copy-static-gallery",
"gen-pages-gallery-dev",
gulp.parallel(
"webpack-dev-server-gallery",
"rspack-dev-server-gallery",
async function watchMarkdownFiles() {
gulp.watch(
[
Expand Down Expand Up @@ -185,7 +185,7 @@ gulp.task(
"gather-gallery-pages"
),
"copy-static-gallery",
"webpack-prod-gallery",
"rspack-prod-gallery",
"gen-pages-gallery-prod"
)
);
6 changes: 3 additions & 3 deletions build-scripts/gulp/hassio.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "./entry-html.js";
import "./gather-static.js";
import "./gen-icons-json.js";
import "./translations.js";
import "./webpack.js";
import "./rspack.js";

gulp.task(
"develop-hassio",
Expand All @@ -21,7 +21,7 @@ gulp.task(
"copy-translations-supervisor",
"build-locale-data",
"copy-static-supervisor",
"webpack-watch-hassio"
"rspack-watch-hassio"
)
);

Expand All @@ -37,7 +37,7 @@ gulp.task(
"copy-translations-supervisor",
"build-locale-data",
"copy-static-supervisor",
"webpack-prod-hassio",
"rspack-prod-hassio",
"gen-pages-hassio-prod",
...// Don't compress running tests
(env.isTestBuild() ? [] : ["compress-hassio"])
Expand Down
6 changes: 3 additions & 3 deletions build-scripts/gulp/landing-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "./entry-html.js";
import "./gather-static.js";
import "./gen-icons-json.js";
import "./translations.js";
import "./webpack.js";
import "./rspack.js";

gulp.task(
"develop-landing-page",
Expand All @@ -20,7 +20,7 @@ gulp.task(
"build-locale-data",
"copy-static-landing-page",
"gen-pages-landing-page-dev",
"webpack-watch-landing-page"
"rspack-watch-landing-page"
)
);

Expand All @@ -35,7 +35,7 @@ gulp.task(
"copy-translations-landing-page",
"build-locale-data",
"copy-static-landing-page",
"webpack-prod-landing-page",
"rspack-prod-landing-page",
"gen-pages-landing-page-prod"
)
);
Loading

0 comments on commit 7c0f4a9

Please sign in to comment.