mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 08:46:35 +00:00
Fix hassio dev under rollup (#6063)
This commit is contained in:
parent
7fb852893c
commit
1a58c17180
@ -1,39 +1,36 @@
|
|||||||
const del = require("del");
|
const del = require("del");
|
||||||
const gulp = require("gulp");
|
const gulp = require("gulp");
|
||||||
const config = require("../paths");
|
const paths = require("../paths");
|
||||||
require("./translations");
|
require("./translations");
|
||||||
|
|
||||||
gulp.task(
|
gulp.task(
|
||||||
"clean",
|
"clean",
|
||||||
gulp.parallel("clean-translations", function cleanOutputAndBuildDir() {
|
gulp.parallel("clean-translations", function cleanOutputAndBuildDir() {
|
||||||
return del([config.app_output_root, config.build_dir]);
|
return del([paths.app_output_root, paths.build_dir]);
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
gulp.task(
|
gulp.task(
|
||||||
"clean-demo",
|
"clean-demo",
|
||||||
gulp.parallel("clean-translations", function cleanOutputAndBuildDir() {
|
gulp.parallel("clean-translations", function cleanOutputAndBuildDir() {
|
||||||
return del([config.demo_output_root, config.build_dir]);
|
return del([paths.demo_output_root, paths.build_dir]);
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
gulp.task(
|
gulp.task(
|
||||||
"clean-cast",
|
"clean-cast",
|
||||||
gulp.parallel("clean-translations", function cleanOutputAndBuildDir() {
|
gulp.parallel("clean-translations", function cleanOutputAndBuildDir() {
|
||||||
return del([config.cast_output_root, config.build_dir]);
|
return del([paths.cast_output_root, paths.build_dir]);
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
gulp.task(
|
gulp.task("clean-hassio", function cleanOutputAndBuildDir() {
|
||||||
"clean-hassio",
|
return del([paths.hassio_output_root, paths.build_dir]);
|
||||||
gulp.parallel("clean-translations", function cleanOutputAndBuildDir() {
|
});
|
||||||
return del([config.hassio_output_root, config.build_dir]);
|
|
||||||
})
|
|
||||||
);
|
|
||||||
|
|
||||||
gulp.task(
|
gulp.task(
|
||||||
"clean-gallery",
|
"clean-gallery",
|
||||||
gulp.parallel("clean-translations", function cleanOutputAndBuildDir() {
|
gulp.parallel("clean-translations", function cleanOutputAndBuildDir() {
|
||||||
return del([config.gallery_output_root, config.build_dir]);
|
return del([paths.gallery_output_root, paths.build_dir]);
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
@ -92,7 +92,11 @@ gulp.task("rollup-watch-app", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
gulp.task("rollup-watch-hassio", () => {
|
gulp.task("rollup-watch-hassio", () => {
|
||||||
watchRollup(rollupConfig.createHassioConfig, ["hassio/src/**"]);
|
watchRollup(
|
||||||
|
// Force latestBuild = false for hassio config.
|
||||||
|
(conf) => rollupConfig.createHassioConfig({ ...conf, latestBuild: false }),
|
||||||
|
["hassio/src/**"]
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task("rollup-dev-server-demo", () => {
|
gulp.task("rollup-dev-server-demo", () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user