text: // Run HA develop mode
  const gulp = require("gulp");
  
  const envVars = require("../env");
  
  require("./clean.js");
  require("./translations.js");
  require("./gen-icons-json.js");
  require("./gather-static.js");
  require("./compress.js");
  require("./webpack.js");
  require("./minify.js");
  require("./service-worker.js");
  require("./entry-html.js");
  
  gulp.task(
    "develop-app",
    gulp.series(
      async function setEnv() {
        process.env.NODE_ENV = "development";
      },
      "clean",
      gulp.parallel(
        "gen-service-worker-dev",
        "gen-icons-json",
        "gen-pages-dev",
        "gen-index-app-dev",
        "build-translations"
      ),
      "copy-static",
      "webpack-watch-app"
    )
  );
  
  gulp.task(
    "build-app",
    gulp.series(
      async function setEnv() {
        process.env.NODE_ENV = "production";
      },
      "clean",
      gulp.parallel("gen-icons-json", "build-translations"),
      "copy-static",
      "webpack-prod-app",
      ...// Don't compress running tests
      (envVars.isTest() ? [] : ["minify-app", "compress-app"]),
      gulp.parallel(
        "gen-pages-prod",
        "gen-index-app-prod",
        "gen-service-worker-prod"
      )
    )
  );
  