mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-24 05:17:20 +00:00

* Reorganize gallery * GitHub edit links * Render sidebar during build * Auto rebuild when sidebar changes * Yarn dedupe * Fixes * Allow just metadata without text * Show edit text link if metadata defined * Update build-scripts/gulp/gallery.js Co-authored-by: Zack Barett <arnett.zackary@gmail.com> Co-authored-by: Zack Barett <arnett.zackary@gmail.com>
37 lines
748 B
JavaScript
37 lines
748 B
JavaScript
const del = require("del");
|
|
const gulp = require("gulp");
|
|
const paths = require("../paths");
|
|
require("./translations");
|
|
|
|
gulp.task(
|
|
"clean",
|
|
gulp.parallel("clean-translations", () =>
|
|
del([paths.app_output_root, paths.build_dir])
|
|
)
|
|
);
|
|
|
|
gulp.task(
|
|
"clean-demo",
|
|
gulp.parallel("clean-translations", () =>
|
|
del([paths.demo_output_root, paths.build_dir])
|
|
)
|
|
);
|
|
|
|
gulp.task(
|
|
"clean-cast",
|
|
gulp.parallel("clean-translations", () =>
|
|
del([paths.cast_output_root, paths.build_dir])
|
|
)
|
|
);
|
|
|
|
gulp.task("clean-hassio", () =>
|
|
del([paths.hassio_output_root, paths.build_dir])
|
|
);
|
|
|
|
gulp.task(
|
|
"clean-gallery",
|
|
gulp.parallel("clean-translations", () =>
|
|
del([paths.gallery_output_root, paths.gallery_build, paths.build_dir])
|
|
)
|
|
);
|